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 state: restarted
name: consul name: consul
daemon_reload: yes 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: apt:
name: "{{ consul_package }}-{{ consul_version_build }}" name: "{{ consul_package }}-{{ consul_version_build }}"
update_cache: yes update_cache: yes
register: consul_update register: consul_setup
notify: Restart consul notify: Restart consul
when: when:
- consul_package_name in ansible_facts.packages - consul_package_name in ansible_facts.packages