mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 06:18:33 +01:00
feat: extend monitoring master config
This commit is contained in:
@@ -1,9 +1,34 @@
|
||||
- name: Install Dependecies
|
||||
apt:
|
||||
name: git
|
||||
state: present
|
||||
|
||||
- name: Clone Passive Monitoring
|
||||
git:
|
||||
repo: https://github.com/FAUSheppy/icinga-passive-checks-monitoring
|
||||
dest: "/etc/monitoring/"
|
||||
version: master
|
||||
|
||||
- name: Clone Monitoring tools
|
||||
git:
|
||||
repo: https://github.com/FAUSheppy/monitoring-tools
|
||||
dest: "/etc/monitoring-tools/"
|
||||
version: master
|
||||
|
||||
- name: Set monitoring tools permissions
|
||||
file:
|
||||
dest: /etc/monitoring-tools/
|
||||
owner: root
|
||||
mode: u=rwX,g=rX,o=rX
|
||||
recurse: yes
|
||||
|
||||
- name: Set monitoring permissions
|
||||
file:
|
||||
dest: /etc/monitoring/
|
||||
owner: root
|
||||
mode: u=rwX,g=rX,o=rX
|
||||
recurse: yes
|
||||
|
||||
- name: Copy nsca-ng and send_nsca to /bin/
|
||||
copy:
|
||||
src: nsca-ng
|
||||
@@ -16,10 +41,20 @@
|
||||
dest: /bin/send_nsca
|
||||
mode: 0755
|
||||
|
||||
- name: Copy icinga hosts conf
|
||||
- name: Copy icinga configuration
|
||||
copy:
|
||||
src: icinga_master_hosts.conf
|
||||
src: "{{ item }}"
|
||||
dest: /etc/icinga2/conf.d/
|
||||
owner: root
|
||||
group: nagios
|
||||
mode: 0640
|
||||
with_items:
|
||||
- icinga_master_hosts.conf
|
||||
- services_passive.conf
|
||||
- services_passive_mail_extern.conf
|
||||
- services_async.conf
|
||||
|
||||
- name: Signal command loaded from monitoring tools
|
||||
lineinfile:
|
||||
path: /etc/icinga2/icinga2.conf
|
||||
line: "include monitoring-tools/commands.d/signal-notify.conf"
|
||||
|
||||
Reference in New Issue
Block a user