Initial commit

This commit is contained in:
2024-02-25 01:16:42 +03:00
commit 30a9e6599d
12 changed files with 211 additions and 0 deletions

15
tasks/main.yml Normal file
View File

@@ -0,0 +1,15 @@
---
- 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