homeserver/friedhof/mgrote_dokuwiki/tasks/apache2.yml
Michael Grote d3a9241d12 Abbau Dokuwiki (#602)
Reviewed-on: #602
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-11-21 12:03:05 +01:00

27 lines
622 B
YAML

---
# aktiviert das module rewrite = a2enmod rewrite
- name: activate a2enmod rewrite
become: true
community.general.apache2_module:
state: present
name: rewrite
- name: copy default apache2.conf
become: true
ansible.builtin.template:
src: "apache2.conf"
dest: "/etc/apache2/apache2.conf"
mode: "0644"
owner: root
group: root
notify: restart_apache2
- name: copy 000-default.conf
become: true
ansible.builtin.template:
src: "000-default.conf"
dest: "/etc/apache2/sites-enabled/000-default.conf"
mode: "0644"
owner: root
group: root
notify: restart_apache2