Sam A.
423dbe2f7f
- Add sapt-labn-prx02 for apps on *.local.sapti.me - Remove Pi-Hole (will be on my RPi) - Unify app configuration in one file (not finished yet) - Upload Compose files to hosts (not finished yet)
21 lines
633 B
YAML
21 lines
633 B
YAML
# vim: ft=yaml.ansible
|
|
# code: language=ansible
|
|
---
|
|
- name: Create volume folder for app {{ app_name }}
|
|
ansible.builtin.file:
|
|
name: "{{ app_vars.volume }}"
|
|
owner: root
|
|
mode: u=rwx,g=rx,o=rx
|
|
state: directory
|
|
|
|
- name: Upload Compose file for app {{ app_name }}
|
|
ansible.builtin.template:
|
|
src: compose-files/{{ app_name }}.yml.j2
|
|
dest: "{{ app_vars.volume }}/docker-compose.yml"
|
|
owner: root
|
|
mode: u=rw,g=r,o=r
|
|
|
|
- name: Run extra configuration tasks for app {{ app_name }}
|
|
ansible.builtin.include_tasks: extra_tasks/{{ app_name }}.yml
|
|
when: app_vars.extra_tasks is defined and app_vars.extra_tasks
|