Knowledge base of ~80+ markdown files across 14 domains (00-13), Logseq graph, hardware design files (KiCAD), infrastructure configs, and talas-wiki static site. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
42 lines
923 B
YAML
42 lines
923 B
YAML
---
|
|
# file: roles/postgres-explain-visualizer/tasks/configure.yml
|
|
|
|
- name: "/opt/pev/config.py"
|
|
template:
|
|
src: config.py.j2
|
|
dest: /opt/pev/config.py
|
|
owner: pev
|
|
group: pev
|
|
mode: 0644
|
|
register: conf
|
|
notify: restart pev
|
|
|
|
- name: "/opt/pev/config.py"
|
|
template:
|
|
src: gunicorn.py.j2
|
|
dest: /opt/pev/gunicorn.py
|
|
owner: pev
|
|
group: pev
|
|
mode: 0644
|
|
register: conf
|
|
notify: restart pev
|
|
|
|
- name: "rebrand fqdn"
|
|
shell:
|
|
cmd: "grep -Irl explain.dalibo.com . | xargs sed -i 's/explain\\.dalibo\\.com/{{ pev_fqdn }}/g' || true"
|
|
chdir: /opt/pev/app/templates
|
|
register: pev_rebranding
|
|
changed_when: "'sed: no input files' not in pev_rebranding.stderr"
|
|
notify: restart pev
|
|
|
|
- name: "pev.service"
|
|
copy:
|
|
src: pev.service
|
|
dest: /etc/systemd/system/pev.service
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify:
|
|
- reload systemd
|
|
- restart pev
|
|
tags: netbox
|