first commit
This commit is contained in:
54
roles/linux_install-checkmk/tasks/main.yml
Normal file
54
roles/linux_install-checkmk/tasks/main.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
# tasks file for linux_install-checkmk
|
||||
- name: Install dpkg
|
||||
ansible.builtin.apt:
|
||||
name: dpkg
|
||||
state: present
|
||||
|
||||
|
||||
- name: Download checkmk and put in tmp
|
||||
ansible.builtin.get_url:
|
||||
url: https://monitoringeu.aperam.internal/monaperam/check_mk/agents/check-mk-agent_2.1.0p43-1_all.deb
|
||||
dest: /tmp/checkmk.deb
|
||||
validate_certs: no
|
||||
|
||||
|
||||
- name: Install checkmk
|
||||
ansible.builtin.apt:
|
||||
deb: /tmp/checkmk.deb
|
||||
become: true
|
||||
|
||||
- name: Add host
|
||||
tribe29.checkmk.host:
|
||||
server_url: "https://monitoringeu.aperam.internal/"
|
||||
site: "monaperam"
|
||||
automation_user: "ansible"
|
||||
automation_secret: "TJXTVH@GFYPRNCJCWUMY"
|
||||
name: "{{hostname}}.adagility.net"
|
||||
validate_certs: false
|
||||
folder: /
|
||||
state: present
|
||||
with_inventory_hostnames:
|
||||
- new_group
|
||||
|
||||
- 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: "{{ hostname }}.adagility.net"
|
||||
state: "new"
|
||||
validate_certs: false
|
||||
with_inventory_hostnames:
|
||||
- new_group
|
||||
|
||||
- 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'
|
||||
Reference in New Issue
Block a user