diff --git a/tasks/haproxy-docker-service.yml b/tasks/haproxy-docker-service.yml index 4544bf1..ebf435c 100644 --- a/tasks/haproxy-docker-service.yml +++ b/tasks/haproxy-docker-service.yml @@ -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