forked from infra/ansible
Add check_mk tasks and roles
This commit is contained in:
parent
e5e92ebb44
commit
b5b06841d1
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,4 @@
|
||||
.vault_pass
|
||||
site.retry
|
||||
playbooks/*.retry
|
||||
inventory/*.hosts
|
||||
ansible.log
|
||||
*.swp
|
||||
|
19
roles/checkmk-agent/tasks/main.yml
Normal file
19
roles/checkmk-agent/tasks/main.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Download Check_MK Agent
|
||||
get_url:
|
||||
dest: /opt/check-mk-agent_1.4.0p33-1_all.deb
|
||||
mode: 0755
|
||||
validate_certs: no
|
||||
url: https://forseti.binary.kitchen/bk/check_mk/agents/check-mk-agent_1.4.0p33-1_all.deb
|
||||
|
||||
- name: Install Check_MK Agent dependencies
|
||||
apt: name={{ item }}
|
||||
with_items:
|
||||
- xinetd
|
||||
|
||||
- name: Install Check_MK Agent
|
||||
apt:
|
||||
deb: "/opt/check-mk-agent_1.4.0p33-1_all.deb"
|
||||
state: present
|
||||
|
61
roles/checkmk-server/tasks/main.yml
Normal file
61
roles/checkmk-server/tasks/main.yml
Normal file
@ -0,0 +1,61 @@
|
||||
---
|
||||
|
||||
- name: Download Check_MK
|
||||
get_url:
|
||||
dest: /opt/check-mk-raw-1.4.0p33_0.stretch_amd64.deb
|
||||
mode: 0755
|
||||
url: https://mathias-kettner.de/support/1.4.0p33/check-mk-raw-1.4.0p33_0.stretch_amd64.deb
|
||||
|
||||
- name: Install Check_MK dependencies
|
||||
apt: name={{ item }}
|
||||
with_items:
|
||||
- cron
|
||||
- debconf
|
||||
- time
|
||||
- traceroute
|
||||
- curl
|
||||
- dialog
|
||||
- dnsutils
|
||||
- fping
|
||||
- graphviz
|
||||
- apache2
|
||||
- libdbi1
|
||||
- libevent-2.0-5
|
||||
- libgd3
|
||||
- libltdl7
|
||||
- libnet-snmp-perl
|
||||
- libpango1.0-0
|
||||
- libperl5.24
|
||||
- libreadline7
|
||||
- libsnmp-perl
|
||||
- libuuid1
|
||||
- patch
|
||||
- binutils
|
||||
- rpm
|
||||
- php
|
||||
- php-cgi
|
||||
- php-cli
|
||||
- php-gd
|
||||
- php-mcrypt
|
||||
- php-sqlite3
|
||||
- php-pear
|
||||
- rsync
|
||||
- smbclient
|
||||
- rpcbind
|
||||
- lcab
|
||||
- snmp
|
||||
- unzip
|
||||
- xinetd
|
||||
- libfreeradius3
|
||||
- libpcap0.8
|
||||
- libgsf-1-114
|
||||
- libglib2.0-0
|
||||
- poppler-utils
|
||||
- libffi6
|
||||
- libssl1.0.2
|
||||
|
||||
- name: Install Check_MK
|
||||
apt:
|
||||
deb: "/opt/check-mk-raw-1.4.0p33_0.stretch_amd64.deb"
|
||||
state: present
|
||||
|
Loading…
Reference in New Issue
Block a user