From d29a68685731fb9ba5c5cfd3f4c94e190a83c1cc Mon Sep 17 00:00:00 2001 From: ace Date: Fri, 10 Feb 2023 00:09:47 +0300 Subject: [PATCH] fix handler --- handlers/main.yaml | 4 +++- tasks/Debian/main.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/handlers/main.yaml b/handlers/main.yaml index dafc16a..3a92f5c 100644 --- a/handlers/main.yaml +++ b/handlers/main.yaml @@ -5,4 +5,6 @@ state: restarted name: consul daemon_reload: yes - when: "not consul_setup.changed or not consul_enable_and_start.changed" + when: + - not consul_setup.changed + - not consul_enable_and_start.changed" diff --git a/tasks/Debian/main.yaml b/tasks/Debian/main.yaml index 3dbaf03..0877259 100644 --- a/tasks/Debian/main.yaml +++ b/tasks/Debian/main.yaml @@ -54,7 +54,7 @@ apt: name: "{{ consul_package }}-{{ consul_version_build }}" update_cache: yes - register: consul_update + register: consul_setup notify: Restart consul when: - consul_package_name in ansible_facts.packages