35 lines
778 B
YAML
35 lines
778 B
YAML
---
|
|
|
|
- name: log directory is present
|
|
file:
|
|
dest: /home/vagrant/log
|
|
mode: "0750"
|
|
owner: vagrant
|
|
group: vagrant
|
|
state: directory
|
|
|
|
- name: Chexpire VHost is present
|
|
template:
|
|
src: chexpire.conf.j2
|
|
dest: /etc/apache2/sites-available/chexpire.conf
|
|
force: yes
|
|
notify: reload apache2
|
|
|
|
- name: Chexpire VHost is enabled
|
|
command: a2ensite chexpire
|
|
args:
|
|
creates: /etc/apache2/sites-enabled/chexpire.conf
|
|
notify: reload apache2
|
|
|
|
- name: Default VHost is disabled
|
|
command: a2dissite 000-default
|
|
args:
|
|
removes: /etc/apache2/sites-enabled/000-default.conf
|
|
notify: reload apache2
|
|
|
|
- name: Proxy modules are enabled
|
|
command: a2enmod proxy_http
|
|
args:
|
|
creates: /etc/apache2/mods-enabled/proxy_http.load
|
|
notify: reload apache2
|