Fix lint warnings
This commit is contained in:
parent
f1fccefcc1
commit
ebe9ee4367
3 changed files with 16 additions and 16 deletions
|
@ -1,18 +1,18 @@
|
||||||
---
|
---
|
||||||
- name: "configuration | Deaktiviere Server-Tokens"
|
- name: "Configuration | Disable ServerTokens"
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/apache2/conf-enabled/security.conf
|
path: /etc/apache2/conf-enabled/security.conf
|
||||||
regexp: '^ServerTokens OS'
|
regexp: '^ServerTokens OS'
|
||||||
line: ServerTokens Prod
|
line: ServerTokens Prod
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
||||||
- name: "configuration | Deaktiviere access-Logs"
|
- name: "Configuration | Disable access-log"
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: a2disconf other-vhosts-access-log
|
cmd: a2disconf other-vhosts-access-log
|
||||||
removes: /etc/apache2/conf-enabled/other-vhosts-access-log.conf
|
removes: /etc/apache2/conf-enabled/other-vhosts-access-log.conf
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
||||||
- name: "apache | Generiere Diffie-Hellman-Parameter"
|
- name: "Configuration | Generate Diffie Hellman parameters"
|
||||||
openssl_dhparam:
|
openssl_dhparam:
|
||||||
path: "{{ dhparams_path }}"
|
path: "{{ dhparams_path }}"
|
||||||
# Most of our apache2 instances are currently running behind public reverse proxies.
|
# 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).
|
# The only possible exceptions are external hosts (e.g. orwell).
|
||||||
when: "'extern_hosts' in group_names"
|
when: "'extern_hosts' in group_names"
|
||||||
|
|
||||||
- name: "configuration | Kopiere Dateien"
|
- name: "Configuration | Copy misc configuration files"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "/etc/apache2/conf-available/{{ item }}"
|
dest: "/etc/apache2/conf-available/{{ item }}"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
- letsencrypt.conf
|
- letsencrypt.conf
|
||||||
- sao-cache.conf
|
- sao-cache.conf
|
||||||
|
|
||||||
- name: "configuration | Kopiere Templates"
|
- name: "Configuration | Copy configuration templates"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: /etc/apache2/conf-available/
|
dest: /etc/apache2/conf-available/
|
||||||
|
@ -39,8 +39,8 @@
|
||||||
- remoteip.conf
|
- remoteip.conf
|
||||||
- ssl.conf
|
- ssl.conf
|
||||||
|
|
||||||
- name: "configuration | Aktiviere Module"
|
- name: "Configuration | Enable modules"
|
||||||
ansible.builtin.apache2_module:
|
community.general.apache2_module:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
- mpm_event
|
- mpm_event
|
||||||
- ssl
|
- ssl
|
||||||
|
|
||||||
- name: "configuration | Aktiviere Konfiguration"
|
- name: "Configuration | Enable configuration"
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: "a2enconf {{ item }}"
|
cmd: "a2enconf {{ item }}"
|
||||||
creates: "/etc/apache2/conf-enabled/{{ item }}"
|
creates: "/etc/apache2/conf-enabled/{{ item }}"
|
||||||
|
|
|
@ -1,30 +1,30 @@
|
||||||
---
|
---
|
||||||
- name: "monitoring | Aktiviere Apache-Module"
|
- name: "Monitoring | Enable Modules"
|
||||||
ansible.builtin.apache2_module:
|
community.general.apache2_module:
|
||||||
name: status
|
name: status
|
||||||
state: present
|
state: present
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
||||||
- name: "monitoring | Kopiere Konfigurationsdatei"
|
- name: "Monitoring | Copy configuration"
|
||||||
ansible.builtin.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
|
mode: 0644
|
||||||
|
|
||||||
- name: "monitoring | Aktiviere Seitenkonfiguration für Localhost"
|
- name: "Monitoring | Enable localhost site configuration"
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: a2ensite server-status
|
cmd: a2ensite server-status
|
||||||
creates: /etc/apache2/sites-enabled/server-status.conf
|
creates: /etc/apache2/sites-enabled/server-status.conf
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
||||||
- name: "monitoring | Kopiere Munin-Konfiguration"
|
- name: "Monitoring | Copy munin configuration"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: munin.j2
|
src: munin_configuration
|
||||||
dest: /etc/munin/plugin-conf.d/yyy-apache
|
dest: /etc/munin/plugin-conf.d/yyy-apache
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: restart munin-node
|
notify: restart munin-node
|
||||||
|
|
||||||
- name: "monitoring | Aktiviere Munin-Plugins"
|
- name: "Mpnitoring | Enable Munin plugins"
|
||||||
ansible.builtin.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 }}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: "packages: Abhängigkeiten installieren"
|
- name: "Packages | Install packages"
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
pkg:
|
pkg:
|
||||||
- apache2
|
- apache2
|
||||||
|
|
Loading…
Reference in a new issue