diff --git a/ansible/playbooks/checkmk.yml b/ansible/playbooks/checkmk.yml index 81cd356..dc95d65 100644 --- a/ansible/playbooks/checkmk.yml +++ b/ansible/playbooks/checkmk.yml @@ -17,6 +17,7 @@ state: "{{ state }}" # might need to create hosts them move so teardown works??? or leave folder after teardown or add only teardown task after run_once: true delegate_to: "localhost" + notify: "activate changes" tags: - checkmk_folder - checkmk_host @@ -59,6 +60,9 @@ when: project_zone == 'protected' tags: checkmk_proxy + - name: Flush handlers + meta: flush_handlers + - name: Create downtimes for new VMs block: - name: "Schedule downtime on Windows VMs to cover deployment" @@ -91,6 +95,7 @@ hours: 3 delegate_to: "localhost" run_once: true + when: project_zone == 'protected' tags: checkmk_downtime handlers: