infrastructure/coreos-config/roles/compose_project/tasks/main.yml
Tobias Manske 4dca002664
All checks were successful
continuous-integration/drone/push Build is passing
Allow to remove services via compose role
2022-10-30 02:31:21 +01:00

19 lines
347 B
YAML

---
- 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
- include_tasks: create.yml
when: state == "present"
- include_tasks: remove.yml
when: state == "absent"
...