Browse code

Monitoring SWAP i drobne porzadki.

Lukasz P authored on16/02/2021 12:10:45
Showing1 changed files
... ...
@@ -1,5 +1,4 @@
1
-- name: Print server name
2
-  debug:
1
+- debug:
3 2
     msg: Installing Nagios configuration for host {{ item.host_name }}
4 3
 
5 4
 - name: Copy nagios server file
Browse code

Zautomatyzowany monitoring.

Lukasz P authored on15/02/2021 13:37:06
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+- name: Print server name
2
+  debug:
3
+    msg: Installing Nagios configuration for host {{ item.host_name }}
4
+
5
+- name: Copy nagios server file
6
+  template:
7
+    src: ../templates/monitoring/nagios_server.j2
8
+    dest: /etc/nagios/servers/{{ item.host_name }}.cfg
9
+    owner: root
10
+    group: nagios
11
+    mode: 0640
12
+  notify:
13
+  - reload nagios
14
+