diff --git a/files/userdir.conf.j2 b/files/userdir.conf.j2 deleted file mode 100644 index 170d5ee..0000000 --- a/files/userdir.conf.j2 +++ /dev/null @@ -1,10 +0,0 @@ - - UserDir public_html - UserDir disabled root - - - AllowOverride All - Options MultiViews Indexes SymLinksIfOwnerMatch - Require all granted - - diff --git a/localhost.yml b/localhost.yml index 85b6ecc..3323986 100644 --- a/localhost.yml +++ b/localhost.yml @@ -4,10 +4,11 @@ become: true vars_files: - vars/default.yml + #- vars/accounts.yml tasks: - include: tasks/lamp.yml - - include: tasks/userdir.yml + # - include: tasks/accounts.yml handlers: - name: Reload Apache diff --git a/tasks/lamp.yml b/tasks/lamp.yml index dbbd2fd..fca35bc 100644 --- a/tasks/lamp.yml +++ b/tasks/lamp.yml @@ -70,3 +70,7 @@ vars: name: "la SNT" +- name: Enable userdir + shell: /usr/sbin/a2enmod userdir + notify: Reload Apache + diff --git a/tasks/userdir.yml b/tasks/userdir.yml deleted file mode 100644 index d50c67c..0000000 --- a/tasks/userdir.yml +++ /dev/null @@ -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 -