fix handler

This commit is contained in:
ace 2023-02-10 00:09:47 +03:00
parent 45d907e336
commit d29a686857
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
2 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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