Initial commit
This commit is contained in:
15
tasks/main.yml
Normal file
15
tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user