Compare commits

...

3 Commits

7 changed files with 18 additions and 22 deletions

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# Mise en place du serveur pédagogique pour la SNT
Avec une Debian ou une Ubuntu serveur toute fraiche, installer git et ansible
apt install git ansible
Cloner le dépot puis
cd serveur_lycee
ansible-playbook localhost.yml

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

1
tasks/accounts.yml Normal file
View File

@ -0,0 +1 @@
---

View File

@ -70,3 +70,7 @@
vars:
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

1
vars/accounts.yml Normal file
View File

@ -0,0 +1 @@
---