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