Fini le TP

This commit is contained in:
tuanvu
2026-02-05 22:04:05 +01:00
parent ae5c2bec37
commit d77a028d23
6 changed files with 136 additions and 3 deletions

View File

@@ -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: