Ajout du tp ansible
This commit is contained in:
18
sisr2/sisr/30-ansible/web/web.yml
Normal file
18
sisr2/sisr/30-ansible/web/web.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: install apache2
|
||||
apt:
|
||||
name:
|
||||
- apache2
|
||||
- php
|
||||
- php-mbstring
|
||||
update_cache: yes
|
||||
state: latest
|
||||
- name: insertion index.html dans /var/www/html
|
||||
ansible.builtin.copy:
|
||||
src: index.html
|
||||
dest: /var/www/html/
|
||||
mode: 0664
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user