Fini le TP
This commit is contained in:
@@ -24,13 +24,18 @@
|
||||
pip:
|
||||
name: pymysql
|
||||
state: present
|
||||
|
||||
|
||||
- name: Create document root
|
||||
file:
|
||||
path: "/var/www/{{ http_host }}"
|
||||
state: directory
|
||||
owner: "{{ app_user }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: Create document root
|
||||
file:
|
||||
path: "/var/www/{{ http_host }}"
|
||||
dest: "/var/www/{{ http_host }}/info.php"
|
||||
|
||||
- name: Set up Apache virtualhost
|
||||
template:
|
||||
@@ -82,6 +87,11 @@
|
||||
src: "files/info.php.j2"
|
||||
dest: "/var/www/{{ http_host }}/info.php"
|
||||
|
||||
- name: Move from html/index.html to demotlc.html
|
||||
command: mv /var/www/{{ http_html }}/index.html /var/www/{{ http_host }}/index.html
|
||||
args:
|
||||
create: /var/www/{{ http_host }}/index.html
|
||||
|
||||
handlers:
|
||||
- name: Reload Apache
|
||||
service:
|
||||
|
||||
@@ -4,4 +4,5 @@ app_user: "vagrant"
|
||||
http_host: "demotlc"
|
||||
http_conf: "demotlc.conf"
|
||||
http_port: "80"
|
||||
http_html: "html"
|
||||
disable_default: true
|
||||
Reference in New Issue
Block a user