v0.1 done: docker webhosts, smtp gateway
This commit is contained in:
23
roles/webserver/tasks/apache.yaml
Normal file
23
roles/webserver/tasks/apache.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
- name: "Install Apache via apt"
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- apache2
|
||||
|
||||
- name: Upload site config to destination
|
||||
copy:
|
||||
src: apache-site.conf
|
||||
dest: /etc/apache2/sites-available/site.conf
|
||||
mode: 644
|
||||
owner: root
|
||||
|
||||
- name: Enable site
|
||||
command: a2ensite site.conf
|
||||
|
||||
- name: Enable and restart Apache2 daemon
|
||||
service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
enabled: yes
|
Reference in New Issue
Block a user