From 9fbb2f7778449e08b9d100bdfbae28094fecb667 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 23 Sep 2020 17:51:26 +0200 Subject: [PATCH] Feat: Add global index --- files/index.html.j2 | 1 + tasks/lamp.yml | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 files/index.html.j2 diff --git a/files/index.html.j2 b/files/index.html.j2 new file mode 100644 index 0000000..52b3878 --- /dev/null +++ b/files/index.html.j2 @@ -0,0 +1 @@ +

Serveur pédagogique pour {{ item.name }}

diff --git a/tasks/lamp.yml b/tasks/lamp.yml index 4414637..19eb76e 100644 --- a/tasks/lamp.yml +++ b/tasks/lamp.yml @@ -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" +