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