Feat: remove userdir task file

This commit is contained in:
Bertrand Benjamin 2020-09-23 18:16:03 +02:00
parent 836d079a0a
commit 7ebd1be9fd
4 changed files with 6 additions and 22 deletions

View File

@ -1,10 +0,0 @@
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch
Require all granted
</Directory>
</IfModule>

View File

@ -4,10 +4,11 @@
become: true become: true
vars_files: vars_files:
- vars/default.yml - vars/default.yml
#- vars/accounts.yml
tasks: tasks:
- include: tasks/lamp.yml - include: tasks/lamp.yml
- include: tasks/userdir.yml # - include: tasks/accounts.yml
handlers: handlers:
- name: Reload Apache - name: Reload Apache

View File

@ -70,3 +70,7 @@
vars: vars:
name: "la SNT" name: "la SNT"
- name: Enable userdir
shell: /usr/sbin/a2enmod userdir
notify: Reload Apache

View File

@ -1,11 +0,0 @@
---
- name: Enable userdir
shell: /usr/sbin/a2enmod 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