Files
role-check-mk-agent/tasks/main.yml

18 lines
506 B
YAML
Raw Normal View History

2020-10-13 16:33:32 +13:00
---
# tasks file for ansible-role-cmk-agent
2022-08-09 07:42:02 +12:00
# Include OS Variables
- include_vars: "{{ ansible_os_family }}.yml"
2020-10-13 16:33:32 +13:00
- include_tasks: "{{ ansible_os_family }}.yml"
- meta: flush_handlers
2022-08-09 07:42:02 +12:00
# Add host to checkmk
2020-10-13 16:33:32 +13:00
- include_tasks: host-management.yml
when: cmk_fresh_install
2022-08-09 07:42:02 +12:00
# Register for automatic agent updates
2020-10-13 16:33:32 +13:00
- include_tasks: "{{ ansible_os_family }}-register.yml"
when: cmk_fresh_install
2022-08-09 07:42:02 +12:00
# Finalize things and collect all available services
- include_tasks: host-configure.yml
2020-10-13 16:33:32 +13:00
when: cmk_fresh_install