Update register of host

This commit is contained in:
2022-08-09 07:42:02 +12:00
parent 3d39f3e231
commit 342fec8955
5 changed files with 83 additions and 23 deletions

View File

@@ -1,11 +1,18 @@
---
# tasks file for ansible-role-cmk-agent
# Include OS Variables
- include_vars: "{{ ansible_os_family }}.yml"
- include_tasks: "{{ ansible_os_family }}.yml"
- meta: flush_handlers
# Add host to checkmk
- include_tasks: host-management.yml
when: cmk_fresh_install
# Register for automatic agent updates
- include_tasks: "{{ ansible_os_family }}-register.yml"
when: cmk_fresh_install
# Finalize things and collect all available services
- include_tasks: host-configure.yml
when: cmk_fresh_install