Feat: move on..!

This commit is contained in:
2020-09-23 09:51:28 +02:00
parent 7245b12f86
commit bf7133e92a
6 changed files with 65 additions and 10 deletions

View File

@@ -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
View 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