infrastructure/coreos-config/roles/compose_project/tasks/main.yml
Tobias Manske f2cd3c991b
Some checks failed
continuous-integration/drone/push Build is failing
Add Monitoring host
2023-03-30 21:52:51 +02:00

19 lines
471 B
YAML

---
- name: Set service_dir
ansible.builtin.set_fact:
service_dir: "{{ compose_dir | mandatory }}/{{ service | mandatory }}{% if service_name is defined %}-{{ service_name }}{% endif %}"
cacheable: true
- ansible.builtin.debug:
msg: "Working on {{ service }}{% if service_name is defined %}-{{ service_name }}{% endif %}"
verbosity: 0
- include_tasks: create.yml
when: state == "present"
- include_tasks: remove.yml
when: state == "absent"
...