From d3480810eec2bb5bf9fce850b5261592b1eb2685 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 23 Jan 2018 14:41:45 +0100 Subject: [PATCH] Fix: Don't do reloads on packer builds Signed-off-by: Knut Ahlers --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index dae884b..f7bcd9e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -93,7 +93,7 @@ systemd: name: docker-compose.service state: reloaded - when: docker_compose.changed or compose_file.changed + when: (docker_compose.changed or compose_file.changed) and packer_build_name is not defined - name: Install docker-compose-reload.service copy: