Files
Docker/tasks/main.yml
2024-02-25 19:26:58 +00:00

20 lines
566 B
YAML

---
- name: docker installation
include_tasks: install.yml
- name: docker configuration
include_tasks: config.yml
- name: Check for docker-compose.yml in the specific directory
ansible.builtin.stat:
path: "{{ 'files/' + (inventory_hostname if molecule_file is not defined else 'molecule') + '/docker-compose.yml' }}"
register: docker_compose_stat
- name: deploy compose files
include_tasks: composes.yml
when: docker_compose_stat.stat.exists
- name: Configure docker system prune with cron
when: docker_cronjob_prune
include_tasks: prune.yml