Compare commits
2 Commits
5fea8518ed
...
9fbb2f7778
Author | SHA1 | Date | |
---|---|---|---|
9fbb2f7778 | |||
28030c93bb |
@ -1,7 +1,5 @@
|
||||
<VirtualHost *:{{ http_port }}>
|
||||
ServerAdmin webmaster@localhost
|
||||
ServerName {{ http_host }}
|
||||
ServerAlias www.{{ http_host }}
|
||||
DocumentRoot /var/www/{{ http_host }}
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
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_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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user