Add apache configuration tasks
This commit is contained in:
parent
1dff8396d7
commit
ba0a279b4f
4 changed files with 49 additions and 1 deletions
14
tasks/apache.yml
Normal file
14
tasks/apache.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: "Apache | Copy virtualhost configuration"
|
||||
ansible.builtin.template:
|
||||
src: apache2.conf.j2
|
||||
dest: "/etc/apache2/sites-available/{{ dmarcsrg_domain }}.conf"
|
||||
mode: "0644"
|
||||
notify: Reload apache2
|
||||
|
||||
- name: "Apache | Enable virtualhost configuration"
|
||||
ansible.builtin.file:
|
||||
src: "/etc/apache2/sites-available/{{ dmarcsrg_domain }}.conf"
|
||||
dest: "/etc/apache2/sites-enabled/{{ dmarcsrg_domain }}.conf"
|
||||
state: link
|
||||
notify: Reload apache2
|
|
@ -14,3 +14,7 @@
|
|||
- name: Configure PHP-FPM
|
||||
ansible.builtin.import_tasks: phpfpm.yml
|
||||
tags: phpfpm
|
||||
|
||||
- name: Apache
|
||||
ansible.builtin.import_tasks: apache.yml
|
||||
tags: apache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue