--- # tasks file for linux_add-host-to-checkmk - name: Add host tribe29.checkmk.host: server_url: "https://monitoringeu.aperam.internal/" site: "monaperam" automation_user: "ansible" automation_secret: "TJXTVH@GFYPRNCJCWUMY" name: "{{item}}" validate_certs: false folder: / state: present with_inventory_hostnames: - checkmk_hosts - name: "Add newly discovered services on host." tribe29.checkmk.discovery: server_url: "https://monitoringeu.aperam.internal/" site: "monaperam" automation_user: "ansible" automation_secret: "TJXTVH@GFYPRNCJCWUMY" host_name: "{{item}}" state: "new" validate_certs: false with_inventory_hostnames: - checkmk_hosts - name: "Add newly discovered services on host." tribe29.checkmk.discovery: server_url: "https://monitoringeu.aperam.internal/" site: "monaperam" automation_user: "ansible" automation_secret: "TJXTVH@GFYPRNCJCWUMY" host_name: "{{item}}" state: "refresh" validate_certs: false with_inventory_hostnames: - checkmk_hosts - name: "Add newly discovered services on host." tribe29.checkmk.discovery: server_url: "https://monitoringeu.aperam.internal/" site: "monaperam" automation_user: "ansible" automation_secret: "TJXTVH@GFYPRNCJCWUMY" host_name: "{{item}}" state: "fix_all" validate_certs: false with_inventory_hostnames: - checkmk_hosts - name: "Activate changes on all sites." tribe29.checkmk.activation: server_url: "https://monitoringeu.aperam.internal/" site: "monaperam" automation_user: "ansible" automation_secret: "TJXTVH@GFYPRNCJCWUMY" force_foreign_changes: 'true' validate_certs: false run_once: 'true'