Michael Grote
d3a9241d12
Reviewed-on: #602 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
27 lines
622 B
YAML
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
|