Compare commits
No commits in common. "419448622427eeba94fb2bb7329b8043f9f21e98" and "836d079a0a55d1eb54c9dda5af24f676b223a458" have entirely different histories.
4194486224
...
836d079a0a
10
README.md
10
README.md
@ -1,10 +0,0 @@
|
|||||||
# 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
|
|
10
files/userdir.conf.j2
Normal file
10
files/userdir.conf.j2
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<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>
|
@ -4,11 +4,10 @@
|
|||||||
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/accounts.yml
|
- include: tasks/userdir.yml
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: Reload Apache
|
- name: Reload Apache
|
||||||
|
@ -1 +0,0 @@
|
|||||||
---
|
|
@ -70,7 +70,3 @@
|
|||||||
vars:
|
vars:
|
||||||
name: "la SNT"
|
name: "la SNT"
|
||||||
|
|
||||||
- name: Enable userdir
|
|
||||||
shell: /usr/sbin/a2enmod userdir
|
|
||||||
notify: Reload Apache
|
|
||||||
|
|
||||||
|
11
tasks/userdir.yml
Normal file
11
tasks/userdir.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
- 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 +0,0 @@
|
|||||||
---
|
|
Loading…
Reference in New Issue
Block a user