From fdd237d757f6a0ee17a6cc1bc4731d199f0dbc70 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 1 Oct 2020 16:33:52 +0200 Subject: [PATCH] Create the directory into install the docker compose file --- tasks/haproxy-docker-service.yml | 3 +++ 1 file changed, 3 insertions(+) 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