diff --git a/ansible/playbooks/checkmk.yml b/ansible/playbooks/checkmk.yml index a8b914d..7d961e1 100644 --- a/ansible/playbooks/checkmk.yml +++ b/ansible/playbooks/checkmk.yml @@ -54,6 +54,22 @@ tags: - teardown + - name: Move Proxy to project specific checkmk folder + checkmk.general.host: + server_url: "{{ checkmk_agent_protocol }}://{{ checkmk_server }}:80/" + site: "{{ checkmk_agent_site }}" + validate_certs: "true" + automation_user: "{{ checkmk_agent_user }}" + automation_secret: "{{ checkmk_password }}" + folder: "/{{ os_project }}-{{ win_project }}" + name: "{{ os_project }}-{{ win_project }}-proxy" + state: "present" + run_once: true + delegate_to: "localhost" + notify: "activate changes" + when: project_zone == 'protected' + tags: checkmk_proxy + handlers: - name: "Activate Changes" listen: activate changes