Compare commits

...

5 Commits

3 changed files with 27 additions and 51 deletions

View File

@ -1,37 +1,17 @@
command:
ip r:
ip route |grep default:
exit-status: 0
stdout:
- default via 172.16.128.254 dev enp0s8
- 172.16.128.0/24
- 192.168.99.0/24
stderr: []
timeout: 10000
ping -c 2 172.16.128.254:
ping -c4 172.16.0.1:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.1.2:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.1.1:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.200.254:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 172.16.0.1:
ping -c4 172.16.128.254:
exit-status: 0
stdout:
- 0% packet loss

View File

@ -1,5 +1,5 @@
---
- name: installation php et apache ...
- name: installation php et apache ...
apt:
name:
- apache2
@ -8,25 +8,22 @@
- php-mysql
- mariadb-client
state: present
- name: download and extract wordpress
- name: download and extract wordpress
unarchive:
src: https://fr.wordpress.org/latest-fr_FR.tar.gz
dest: /home/
remote_src: yes
owner: www-data
group: www-data
- name: Copy sample config file
- name: Copy sample config file
command: mv /home/wordpress/wp-config-sample.php /home/wordpress/wp-config.php creates=/home/wordpress/wp-config.php
- name: Changement du fichier de conf
- name: Changement du fichier de conf
copy:
src: wp-config.php
dest: /home/wordpress/wp-config.php
- name: Attributions des permissions
- name: Attributions des permissions
file:
path: /home/wordpress
recurse: yes
owner: 33
group: 33

View File

@ -8,4 +8,3 @@
- snmp-agent
- lb-nfs-client
- post