Compare commits
2 Commits
5fea8518ed
...
9fbb2f7778
Author | SHA1 | Date | |
---|---|---|---|
9fbb2f7778 | |||
28030c93bb |
@ -1,7 +1,5 @@
|
|||||||
<VirtualHost *:{{ http_port }}>
|
<VirtualHost *:{{ http_port }}>
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
ServerName {{ http_host }}
|
|
||||||
ServerAlias www.{{ http_host }}
|
|
||||||
DocumentRoot /var/www/{{ http_host }}
|
DocumentRoot /var/www/{{ http_host }}
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
1
files/index.html.j2
Normal file
1
files/index.html.j2
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h1> Serveur pédagogique pour {{ item.name }} </h1>
|
@ -52,16 +52,21 @@
|
|||||||
login_user: root
|
login_user: root
|
||||||
login_password: "{{ mysql_root_password }}"
|
login_password: "{{ mysql_root_password }}"
|
||||||
|
|
||||||
# UFW Configuration
|
|
||||||
- name: "UFW - Allow HTTP on port {{ http_port }}"
|
- name: "UFW - Allow HTTP on port {{ http_port }}"
|
||||||
ufw:
|
ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
port: "{{ http_port }}"
|
port: "{{ http_port }}"
|
||||||
proto: tcp
|
proto: tcp
|
||||||
|
|
||||||
# PHP Info Page
|
|
||||||
- name: Sets Up PHP Info Page
|
- name: Sets Up PHP Info Page
|
||||||
template:
|
template:
|
||||||
src: "files/info.php.j2"
|
src: "files/info.php.j2"
|
||||||
dest: "/var/www/{{ http_host }}/info.php"
|
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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user