nginx: Aktualisiere Rolle. Dient nun zur allgemeinen Einrichtung von Nginx
This commit is contained in:
commit
c9ed568d78
8 changed files with 92 additions and 0 deletions
6
tasks/main.yaml
Normal file
6
tasks/main.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- import_tasks: packages.yml
|
||||
tags: packages
|
||||
|
||||
- import_tasks: monitoring.yml
|
||||
tags: monitoring
|
29
tasks/monitoring.yml
Normal file
29
tasks/monitoring.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
- name: "monitoring | Aktiviere Munin-Plugin"
|
||||
file:
|
||||
src: "/usr/share/munin/plugins/nginx_{{ item }}"
|
||||
dest: "/etc/munin/plugins/nginx_{{ item }}"
|
||||
state: link
|
||||
loop:
|
||||
- request
|
||||
- status
|
||||
notify: restart munin-node
|
||||
|
||||
- name: "monitoring | Kopiere Datei für lokale Statusausgabe"
|
||||
template:
|
||||
src: local-statistics.j2
|
||||
dest: /etc/nginx/sites-available/local-statistics
|
||||
notify: reload nginx
|
||||
|
||||
- name: "monitoring | Aktiviere Lokale Status-Ausgabe"
|
||||
file:
|
||||
src: /etc/nginx/sites-available/local-statistics
|
||||
dest: /etc/nginx/sites-enabled/local-statistics
|
||||
state: link
|
||||
notify: reload nginx
|
||||
|
||||
- name: "monitoring | Kopiere Monit-Überwachung"
|
||||
template:
|
||||
src: monit.j2
|
||||
dest: /etc/monit/conf-enabled/nginx
|
||||
notify: reload monit
|
6
tasks/packages.yml
Normal file
6
tasks/packages.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: "packages | Installiere Debian-Pakete"
|
||||
apt:
|
||||
pkg:
|
||||
- liblwp-useragent-determined-perl
|
||||
- nginx-full
|
Loading…
Add table
Add a link
Reference in a new issue