Compare commits
3 Commits
836d079a0a
...
4194486224
Author | SHA1 | Date | |
---|---|---|---|
4194486224 | |||
c4b221354b | |||
7ebd1be9fd |
10
README.md
Normal file
10
README.md
Normal 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
|
@ -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>
|
@ -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
1
tasks/accounts.yml
Normal file
@ -0,0 +1 @@
|
||||
---
|
@ -70,3 +70,7 @@
|
||||
vars:
|
||||
name: "la SNT"
|
||||
|
||||
- name: Enable userdir
|
||||
shell: /usr/sbin/a2enmod userdir
|
||||
notify: Reload Apache
|
||||
|
||||
|
@ -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
1
vars/accounts.yml
Normal file
@ -0,0 +1 @@
|
||||
---
|
Loading…
Reference in New Issue
Block a user