homeserver/roles/mgrote_dokuwiki/tasks/apache2.yml

28 lines
622 B
YAML
Raw Normal View History

---
# 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