Manage Gondulf and StarPunk with Ansible
Both were hand-deployed to /opt/stacks. Templates match the live setup and keep the same stack dirs and volume names, so data stays put. Secrets come from the vault; .env and the StarPunk compose file are now 0640 root:docker instead of the broken 1204 mode. Adds their DNS records to dns.yml and drops the dead godulf. Caddy route (no DNS). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,3 +9,7 @@
|
||||
- name: Install listmonk
|
||||
import_tasks: listmonk.yml
|
||||
tags: listmonk
|
||||
|
||||
- name: Install starpunk
|
||||
import_tasks: starpunk.yml
|
||||
tags: starpunk
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
- name: make starpunk directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- /opt/stacks/starpunk
|
||||
|
||||
- name: Template out the starpunk compose file
|
||||
ansible.builtin.template:
|
||||
src: starpunk-compose.yml.j2
|
||||
dest: /opt/stacks/starpunk/compose.yml
|
||||
owner: root
|
||||
mode: '0640'
|
||||
group: docker
|
||||
diff: false # contains the session secret
|
||||
|
||||
- name: deploy starpunk stack
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/stacks/starpunk
|
||||
files:
|
||||
- compose.yml
|
||||
@@ -0,0 +1,28 @@
|
||||
- name: make gondulf directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- /opt/stacks/gondulf
|
||||
|
||||
- name: Template out the gondulf compose file
|
||||
ansible.builtin.template:
|
||||
src: gondulf-compose.yml.j2
|
||||
dest: /opt/stacks/gondulf/compose.yml
|
||||
owner: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Template out the gondulf .env file
|
||||
ansible.builtin.template:
|
||||
src: gondulf-env.j2
|
||||
dest: /opt/stacks/gondulf/.env
|
||||
owner: root
|
||||
mode: '0640'
|
||||
group: docker
|
||||
diff: false # contains the secret key and SMTP password
|
||||
|
||||
- name: deploy gondulf stack
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/stacks/gondulf
|
||||
files:
|
||||
- compose.yml
|
||||
@@ -13,6 +13,10 @@
|
||||
import_tasks: pocketid.yml
|
||||
tags: pocketid
|
||||
|
||||
- name: Install gondulf
|
||||
import_tasks: gondulf.yml
|
||||
tags: gondulf
|
||||
|
||||
- name: Template out the dockge compose file
|
||||
ansible.builtin.template:
|
||||
src: dockge-compose.yml.j2
|
||||
|
||||
Reference in New Issue
Block a user