trigger squid reload when allow list is changed

This commit is contained in:
abrown38 committed 2024-12-20 15:18:59 +00:00
1 parent 06b72112c8
commit 0f4b5249c1
3 files changed
+12

No files matched your search

@@ -24,6 +24,7 @@
attributes:
ipaddress: "{{ hostvars[inventory_hostname].ansible_host }}"
state: "present"
register: host_added
notify: "activate changes"
rescue:
- name: Add {{ inventory_hostname }} to "/" CheckMK
@@ -48,3 +49,4 @@
- name: register agent for TLS
shell: |
cmk-agent-ctl register --hostname {{ inventory_hostname }} --server {{ checkmk_server }} --site {{ checkmk_agent_site }} --user {{ checkmk_agent_user }} --password '{{ checkmk_password }}' --trust-cert
when: host_added.changed