Files
Docker/tasks/main.yml
2024-02-26 10:06:46 +00:00

24 lines
677 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_deploy and docker_compose_stat.stat.exists
- name: Configure docker system prune with cron
when: docker_cronjob_prune
include_tasks: prune.yml
- name: install netdata
when: docker_netdata_install
include_tasks: netdata.yml