Add role for apache forward site
This commit is contained in:
parent
9921054e7e
commit
85c09ea2ae
3 changed files with 55 additions and 0 deletions
roles/setup-http-site-forward/tasks
12
roles/setup-http-site-forward/tasks/main.yml
Normal file
12
roles/setup-http-site-forward/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: Add or update Apache2 site
|
||||
template:
|
||||
src: templates/apache-docker-forward-site.j2
|
||||
dest: /etc/apache2/sites-available/{{site_name}}.conf
|
||||
notify: restart apache2
|
||||
|
||||
- name: Activate Apache2 site
|
||||
command: a2ensite {{ site_name}}
|
||||
args:
|
||||
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
|
||||
notify: restart apache2
|
Loading…
Add table
Add a link
Reference in a new issue