Fix lint warnings

This commit is contained in:
phil 2023-02-06 22:26:37 +01:00
parent f1fccefcc1
commit ebe9ee4367
3 changed files with 16 additions and 16 deletions

View file

@ -1,18 +1,18 @@
---
- name: "configuration | Deaktiviere Server-Tokens"
- name: "Configuration | Disable ServerTokens"
ansible.builtin.lineinfile:
path: /etc/apache2/conf-enabled/security.conf
regexp: '^ServerTokens OS'
line: ServerTokens Prod
notify: reload apache2
- name: "configuration | Deaktiviere access-Logs"
- name: "Configuration | Disable access-log"
ansible.builtin.command:
cmd: a2disconf other-vhosts-access-log
removes: /etc/apache2/conf-enabled/other-vhosts-access-log.conf
notify: reload apache2
- name: "apache | Generiere Diffie-Hellman-Parameter"
- name: "Configuration | Generate Diffie Hellman parameters"
openssl_dhparam:
path: "{{ dhparams_path }}"
# Most of our apache2 instances are currently running behind public reverse proxies.
@ -20,7 +20,7 @@
# The only possible exceptions are external hosts (e.g. orwell).
when: "'extern_hosts' in group_names"
- name: "configuration | Kopiere Dateien"
- name: "Configuration | Copy misc configuration files"
ansible.builtin.copy:
src: "{{ item }}"
dest: "/etc/apache2/conf-available/{{ item }}"
@ -30,7 +30,7 @@
- letsencrypt.conf
- sao-cache.conf
- name: "configuration | Kopiere Templates"
- name: "Configuration | Copy configuration templates"
ansible.builtin.template:
src: "{{ item }}"
dest: /etc/apache2/conf-available/
@ -39,8 +39,8 @@
- remoteip.conf
- ssl.conf
- name: "configuration | Aktiviere Module"
ansible.builtin.apache2_module:
- name: "Configuration | Enable modules"
community.general.apache2_module:
name: "{{ item }}"
state: present
notify: reload apache2
@ -50,7 +50,7 @@
- mpm_event
- ssl
- name: "configuration | Aktiviere Konfiguration"
- name: "Configuration | Enable configuration"
ansible.builtin.command:
cmd: "a2enconf {{ item }}"
creates: "/etc/apache2/conf-enabled/{{ item }}"

View file

@ -1,30 +1,30 @@
---
- name: "monitoring | Aktiviere Apache-Module"
ansible.builtin.apache2_module:
- name: "Monitoring | Enable Modules"
community.general.apache2_module:
name: status
state: present
notify: reload apache2
- name: "monitoring | Kopiere Konfigurationsdatei"
- name: "Monitoring | Copy configuration"
ansible.builtin.copy:
src: server-status.conf
dest: /etc/apache2/sites-available/server-status.conf
mode: 0644
- name: "monitoring | Aktiviere Seitenkonfiguration für Localhost"
- name: "Monitoring | Enable localhost site configuration"
ansible.builtin.command:
cmd: a2ensite server-status
creates: /etc/apache2/sites-enabled/server-status.conf
notify: reload apache2
- name: "monitoring | Kopiere Munin-Konfiguration"
- name: "Monitoring | Copy munin configuration"
ansible.builtin.template:
src: munin.j2
src: munin_configuration
dest: /etc/munin/plugin-conf.d/yyy-apache
mode: 0644
notify: restart munin-node
- name: "monitoring | Aktiviere Munin-Plugins"
- name: "Mpnitoring | Enable Munin plugins"
ansible.builtin.file:
src: "/usr/share/munin/plugins/{{ item }}"
dest: "/etc/munin/plugins/{{ item }}"

View file

@ -1,5 +1,5 @@
---
- name: "packages: Abhängigkeiten installieren"
- name: "Packages | Install packages"
ansible.builtin.apt:
pkg:
- apache2