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"
|
- name: "monitoring | Aktiviere Apache-Module"
|
||||||
apache2_module:
|
ansible.builtin.apache2_module:
|
||||||
name: status
|
name: status
|
||||||
state: present
|
state: present
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
||||||
- name: "monitoring | Kopiere Konfigurationsdatei"
|
- name: "monitoring | Kopiere Konfigurationsdatei"
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: server-status.conf
|
src: server-status.conf
|
||||||
dest: /etc/apache2/sites-available/server-status.conf
|
dest: /etc/apache2/sites-available/server-status.conf
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: "monitoring | Aktiviere Seitenkonfiguration für Localhost"
|
- name: "monitoring | Aktiviere Seitenkonfiguration für Localhost"
|
||||||
file:
|
ansible.builtin.command:
|
||||||
src: /etc/apache2/sites-available/server-status.conf
|
cmd: a2ensite server-status
|
||||||
dest: /etc/apache2/sites-enabled/server-status.conf
|
creates: /etc/apache2/sites-enabled/server-status.conf
|
||||||
state: link
|
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
||||||
- name: "monitoring | Kopiere Munin-Konfiguration"
|
- name: "monitoring | Kopiere Munin-Konfiguration"
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: munin.j2
|
src: munin.j2
|
||||||
dest: /etc/munin/plugin-conf.d/yyy-apache
|
dest: /etc/munin/plugin-conf.d/yyy-apache
|
||||||
|
mode: 0644
|
||||||
notify: restart munin-node
|
notify: restart munin-node
|
||||||
|
|
||||||
- name: "monitoring | Aktiviere Munin-Plugins"
|
- name: "monitoring | Aktiviere Munin-Plugins"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
src: "/usr/share/munin/plugins/{{ item }}"
|
src: "/usr/share/munin/plugins/{{ item }}"
|
||||||
dest: "/etc/munin/plugins/{{ item }}"
|
dest: "/etc/munin/plugins/{{ item }}"
|
||||||
state: link
|
state: link
|
||||||
|
|
Loading…
Reference in a new issue