mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-11-01 05:10:15 +00:00
WIP changes for adding hosts to checkmk
This commit is contained in:
1 parent
001db69fe0
commit
41c8ecdddc
5 files changed
+77
-8
No files matched your search
@@ -21,7 +21,7 @@
|
||||
- checkmk_host
|
||||
- checkmk_all
|
||||
|
||||
- name: Add Windows host into check
|
||||
- name: Add Windows host into checkMK
|
||||
checkmk.general.host:
|
||||
server_url: "{{ checkmk_agent_protocol }}://{{ checkmk_server }}:80/"
|
||||
site: "{{ checkmk_agent_site }}"
|
||||
@@ -92,11 +92,25 @@
|
||||
- checkmk_all
|
||||
- checkmk_agent
|
||||
|
||||
- name: register for TLS
|
||||
win_shell: |
|
||||
sl 'C:\Program Files (x86)\checkmk\service'
|
||||
.\cmk-agent-ctl register --hostname {{ inventory_hostname }} --server {{ checkmk_server }} --site {{ checkmk_agent_site }} --user {{ checkmk_agent_user }} --password '{{ checkmk_password }}' --trust-cert
|
||||
- name: TLS registrtion
|
||||
block:
|
||||
- name: register for TLS
|
||||
win_shell: |
|
||||
sl 'C:\Program Files (x86)\checkmk\service'
|
||||
.\cmk-agent-ctl register --hostname {{ inventory_hostname }} --server {{ checkmk_server }} --site {{ checkmk_agent_site }} --user {{ checkmk_agent_user }} --password '{{ checkmk_password }}' --trust-cert
|
||||
#when: project_zone == 'standard' or
|
||||
# inventory_hostname in groups['meta-type_server']
|
||||
|
||||
#- name: register TLS on client (Protected)
|
||||
# vars:
|
||||
# ansible_connection: local
|
||||
# shell: |
|
||||
# sudo cmk-agent-ctl proxy-register --hostname {{ inventory_hostname }} --server {{ checkmk_server }} --site {{ checkmk_agent_site }} --user {{ checkmk_agent_user }} --password '{{ checkmk_password }}' --trust-cert
|
||||
# delegate_to: localhost
|
||||
# when: project_zone == 'protected' and
|
||||
# inventory_hostname in groups['meta-type_client']
|
||||
tags:
|
||||
- checkmk_host
|
||||
- checkmk_tls
|
||||
- checkmk_all
|
||||
- checkmk_all
|
||||
|
||||
Reference in new issue
Block a user