19 lines
512 B
YAML
19 lines
512 B
YAML
- name: "configuration: Server-Tokens deaktivieren"
|
|
lineinfile:
|
|
path: /etc/apache2/conf-enabled/security.conf
|
|
regexp: '^ServerTokens OS'
|
|
line: ServerTokens Prod
|
|
notify: reload apache2
|
|
|
|
- name: "configuration: Deaktiviere access-Logs"
|
|
command: a2disconf other-vhosts-access-log
|
|
notify: reload apache2
|
|
|
|
- name: "configuration: Kopiere Dateien"
|
|
copy:
|
|
src: "{{ item }}"
|
|
dest: "/etc/apache2/conf-available/{{ item }}"
|
|
loop:
|
|
- add-headers.conf
|
|
- letsencrypt.conf
|
|
- ssl.conf
|