apache2: Korrigiere lint-Warnungen
This commit is contained in:
parent
c85aee6e7f
commit
c3aa0124d2
1 changed files with 9 additions and 8 deletions
|
@ -1,30 +1,31 @@
|
|||
---
|
||||
- name: "monitoring | Aktiviere Apache-Module"
|
||||
apache2_module:
|
||||
ansible.builtin.apache2_module:
|
||||
name: status
|
||||
state: present
|
||||
notify: reload apache2
|
||||
|
||||
- name: "monitoring | Kopiere Konfigurationsdatei"
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: server-status.conf
|
||||
dest: /etc/apache2/sites-available/server-status.conf
|
||||
mode: 0644
|
||||
|
||||
- name: "monitoring | Aktiviere Seitenkonfiguration für Localhost"
|
||||
file:
|
||||
src: /etc/apache2/sites-available/server-status.conf
|
||||
dest: /etc/apache2/sites-enabled/server-status.conf
|
||||
state: link
|
||||
ansible.builtin.command:
|
||||
cmd: a2ensite server-status
|
||||
creates: /etc/apache2/sites-enabled/server-status.conf
|
||||
notify: reload apache2
|
||||
|
||||
- name: "monitoring | Kopiere Munin-Konfiguration"
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: munin.j2
|
||||
dest: /etc/munin/plugin-conf.d/yyy-apache
|
||||
mode: 0644
|
||||
notify: restart munin-node
|
||||
|
||||
- name: "monitoring | Aktiviere Munin-Plugins"
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
src: "/usr/share/munin/plugins/{{ item }}"
|
||||
dest: "/etc/munin/plugins/{{ item }}"
|
||||
state: link
|
||||
|
|
Loading…
Reference in a new issue