snapshot
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
---
|
||||
- name: "Debug | Server Role Selection"
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
|
||||
roles:
|
||||
- server_role_selection
|
||||
|
||||
tasks:
|
||||
- name: "Debug | Display detected server roles"
|
||||
ansible.builtin.debug:
|
||||
msg:
|
||||
host: "{{ inventory_hostname }}"
|
||||
os_family: "{{ ansible_facts['os_family'] | default('unknown') }}"
|
||||
|
||||
windows_roles:
|
||||
domain_controller: "{{ is_dc | default(false) | bool }}"
|
||||
dhcp_server: "{{ is_dhcp_server | default(false) | bool }}"
|
||||
hyperv_host: "{{ is_hyperv_host | default(false) | bool }}"
|
||||
|
||||
veeam:
|
||||
vbr: "{{ has_veeam_vbr | default(false) | bool }}"
|
||||
vbo: "{{ has_veeam_vbo | default(false) | bool }}"
|
||||
enterprise_manager: "{{ has_veeam_em | default(false) | bool }}"
|
||||
|
||||
linux_roles:
|
||||
unifi_controller: "{{ is_unifi_controller | default(false) | bool }}"
|
||||
|
||||
optional_features:
|
||||
linux_certificate_check: "{{ want_linux_check_certificate | default(false) | bool }}"
|
||||
windows_citrix: "{{ want_windows_citrix | default(false) | bool }}"
|
||||
windows_surebackup: "{{ want_windows_surebackup | default(false) | bool }}"
|
||||
windows_backup: "{{ want_windows_backup | default(false) | bool }}"
|
||||
|
||||
- name: "Debug | Display Checkmk script deployment decisions"
|
||||
ansible.builtin.debug:
|
||||
msg:
|
||||
linux:
|
||||
unifi_controller:
|
||||
deploy: "{{ is_unifi_controller | default(false) | bool }}"
|
||||
reason: "UniFi Controller detected"
|
||||
scripts:
|
||||
- "check_unifi-controller.sh"
|
||||
- "unifi.cfg"
|
||||
|
||||
certificate_directory:
|
||||
deploy: "{{ want_linux_check_certificate | default(false) | bool }}"
|
||||
reason: "Certificate directory monitoring explicitly enabled"
|
||||
scripts:
|
||||
- "check_certificate_directory.sh"
|
||||
|
||||
windows:
|
||||
check_ping:
|
||||
deploy: "{{ is_dc | default(false) | bool }}"
|
||||
reason: "Domain Controller"
|
||||
scripts:
|
||||
- "check-ping.ps1"
|
||||
|
||||
veeam_config_backup:
|
||||
deploy: "{{ has_veeam_vbr | default(false) | bool }}"
|
||||
reason: "Veeam Backup & Replication detected"
|
||||
scripts:
|
||||
- "veeam_config_backup_status.ps1"
|
||||
|
||||
veeam_o365:
|
||||
deploy: "{{ has_veeam_vbo | default(false) | bool }}"
|
||||
reason: "Veeam Backup for Microsoft 365 detected"
|
||||
scripts:
|
||||
- "veeam_o365_status.ps1"
|
||||
|
||||
citrix_sessions:
|
||||
deploy: "{{ want_windows_citrix | default(false) | bool }}"
|
||||
reason: "Citrix monitoring explicitly enabled"
|
||||
scripts:
|
||||
- "citrix_sessions_customized.ps1"
|
||||
|
||||
veeam_surebackup:
|
||||
deploy: "{{ want_windows_surebackup | default(false) | bool }}"
|
||||
reason: "Veeam SureBackup monitoring explicitly enabled"
|
||||
scripts:
|
||||
- "veeam_surebackup_status.ps1"
|
||||
|
||||
windows_backup:
|
||||
deploy: "{{ want_windows_backup | default(false) | bool }}"
|
||||
reason: "Windows Backup monitoring explicitly enabled"
|
||||
scripts:
|
||||
- "windows-backup.ps1"
|
||||
Reference in New Issue
Block a user