20 lines
592 B
YAML
20 lines
592 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
|