Feat: move on..!
This commit is contained in:
@@ -12,18 +12,18 @@
|
||||
file:
|
||||
path: "/var/www/{{ http_host }}"
|
||||
state: directory
|
||||
owner: "{{ app_user }}"
|
||||
owner: "{{ web_user }}"
|
||||
mode: '0755'
|
||||
|
||||
# - name: Set up Apache virtualhost
|
||||
# template:
|
||||
# src: "files/apache.conf.j2"
|
||||
# dest: "/etc/apache2/sites-available/{{ http_conf }}"
|
||||
# notify: Reload Apache
|
||||
- name: Set up Apache virtualhost
|
||||
template:
|
||||
src: "files/apache.conf.j2"
|
||||
dest: "/etc/apache2/sites-available/{{ http_conf }}"
|
||||
notify: Reload Apache
|
||||
|
||||
# - name: Enable new site
|
||||
# shell: /usr/sbin/a2ensite {{ http_conf }}
|
||||
# notify: Reload Apache
|
||||
- name: Enable new site
|
||||
shell: /usr/sbin/a2ensite {{ http_conf }}
|
||||
notify: Reload Apache
|
||||
|
||||
- name: Disable default Apache site
|
||||
shell: /usr/sbin/a2dissite 000-default.conf
|
||||
|
11
tasks/userdir.yml
Normal file
11
tasks/userdir.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Enable userdir
|
||||
shell: /usr/sbin/a2mod userdir
|
||||
notify: Reload Apache
|
||||
|
||||
- name: Set up userdir virtualhost
|
||||
template:
|
||||
src: "files/userdir.conf.j2"
|
||||
dest: "/etc/apache2/mods-enabled/userdir.conf"
|
||||
notify: Reload Apache
|
||||
|
Reference in New Issue
Block a user