2023-10-31 21:06:25 +00:00
|
|
|
# vim: ft=yaml.ansible
|
|
|
|
# code: language=ansible
|
|
|
|
---
|
2023-11-05 17:27:49 +00:00
|
|
|
- name: Create app folder for {{ app_name }}
|
2023-10-31 21:06:25 +00:00
|
|
|
ansible.builtin.file:
|
2023-11-13 20:31:09 +00:00
|
|
|
path: "{{ apps_data_root }}/{{ app_name }}"
|
2023-10-31 21:06:25 +00:00
|
|
|
owner: root
|
2023-11-03 22:38:15 +00:00
|
|
|
mode: u=rwx,go=
|
2023-10-31 21:06:25 +00:00
|
|
|
state: directory
|
|
|
|
|
2023-11-05 17:27:49 +00:00
|
|
|
- name: Upload Compose file for {{ app_name }}
|
2023-10-31 21:06:25 +00:00
|
|
|
ansible.builtin.template:
|
|
|
|
src: compose-files/{{ app_name }}.yml.j2
|
2023-11-05 17:27:49 +00:00
|
|
|
dest: "{{ apps_data_root }}/{{ app_name }}/docker-compose.yml"
|
2023-10-31 21:06:25 +00:00
|
|
|
owner: root
|
2023-11-03 22:38:15 +00:00
|
|
|
mode: u=rw,go=
|
2023-10-31 21:06:25 +00:00
|
|
|
|
2023-11-05 17:27:49 +00:00
|
|
|
- name: Create data folder for {{ app_name }}
|
|
|
|
ansible.builtin.file:
|
2023-11-13 20:31:09 +00:00
|
|
|
path: "{{ apps_data_root }}/{{ app_name }}/data"
|
2023-11-05 17:27:49 +00:00
|
|
|
owner: root
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Run extra configuration tasks for {{ app_name }}
|
2023-10-31 21:06:25 +00:00
|
|
|
ansible.builtin.include_tasks: extra_tasks/{{ app_name }}.yml
|
2023-11-11 14:47:51 +00:00
|
|
|
when: app_vars.extra_tasks
|