Feat: Add global index

This commit is contained in:
Bertrand Benjamin 2020-09-23 17:51:26 +02:00
parent 28030c93bb
commit 9fbb2f7778
2 changed files with 8 additions and 2 deletions

1
files/index.html.j2 Normal file
View File

@ -0,0 +1 @@
<h1> Serveur pédagogique pour {{ item.name }} </h1>

View File

@ -52,16 +52,21 @@
login_user: root
login_password: "{{ mysql_root_password }}"
# UFW Configuration
- name: "UFW - Allow HTTP on port {{ http_port }}"
ufw:
rule: allow
port: "{{ http_port }}"
proto: tcp
# PHP Info Page
- name: Sets Up PHP Info Page
template:
src: "files/info.php.j2"
dest: "/var/www/{{ http_host }}/info.php"
- name: Sets Up Index page
template:
src: "files/index.html.j2"
dest: "/var/www/{{ http_host }}/info.php"
vars:
item.name: "la SNT"