homeserver/roles/mgrote.dokuwiki/tasks/apache2.yml
2021-02-23 12:35:07 +01:00

21 lines
555 B
YAML

---
# aktiviert das module rewrite = a2enmod rewrite
- name: activate a2enmod rewrite
become: yes
ansible.builtin.apache2_module:
state: present
name: rewrite
- name: copy default apache2.conf
become: yes
ansible.builtin.template:
src: "apache2.conf"
dest: "/etc/apache2/apache2.conf"
notify: restart_apache2
- name: copy 000-default.conf
become: yes
ansible.builtin.template:
src: "000-default.conf"
dest: "/etc/apache2/sites-enabled/000-default.conf"
notify: restart_apache2