Create the directory into install the docker compose file

This commit is contained in:
Andrea Dell'Amico 2020-10-01 16:33:52 +02:00
parent 4ec253321b
commit fdd237d757
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
---
- name: Manage the composition of haproxy as a docker swarm service
block:
- name: Create the destination directory of the haproxy docker compose file
file: dest={{ haproxy_docker_compose_dir }} state=directory
- name: Install the docker compose file
template: src=haproxy-docker-compose.yml.j2 dest={{ haproxy_docker_compose_dir }}/docker-compose.yml