2023-10-25 22:26:17 +02:00
|
|
|
---
|
|
|
|
# aktiviert das module rewrite = a2enmod rewrite
|
|
|
|
- name: activate a2enmod rewrite
|
|
|
|
become: true
|
2023-10-26 00:14:16 +02:00
|
|
|
community.general.apache2_module:
|
2023-10-25 22:26:17 +02:00
|
|
|
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
|