2022-10-29 05:04:47 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Set service_dir
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
service_dir: "{{ compose_dir | mandatory }}/{{ service | mandatory }}"
|
|
|
|
cacheable: true
|
|
|
|
|
|
|
|
- ansible.builtin.debug:
|
|
|
|
msg: "Working on {{ service }}"
|
|
|
|
verbosity: 0
|
|
|
|
|
2022-10-30 02:31:21 +01:00
|
|
|
- include_tasks: create.yml
|
|
|
|
when: state == "present"
|
2022-10-29 05:04:47 +02:00
|
|
|
|
2022-10-30 02:31:21 +01:00
|
|
|
- include_tasks: remove.yml
|
|
|
|
when: state == "absent"
|
2022-10-29 05:04:47 +02:00
|
|
|
|
|
|
|
...
|