Compare commits
7 Commits
v0.0.2y-ml
...
v0.0.3c-em
Author | SHA1 | Date | |
---|---|---|---|
fff62c5507 | |||
6139095296 | |||
9b609e6418 | |||
332c8a2167 | |||
a3c2d85952 | |||
f8e3eabb9d | |||
043a273589 |
@ -1,39 +1,19 @@
|
|||||||
command:
|
command:
|
||||||
ip r:
|
ip route |grep default:
|
||||||
exit-status: 0
|
exit-status: 0
|
||||||
stdout:
|
stdout:
|
||||||
- default via 172.16.128.254 dev enp0s8
|
- default via 172.16.128.254 dev enp0s8
|
||||||
- 172.16.128.0/24
|
|
||||||
- 192.168.99.0/24
|
|
||||||
stderr: []
|
stderr: []
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
ping -c 2 172.16.128.254:
|
ping -c4 172.16.0.1:
|
||||||
exit-status: 0
|
exit-status: 0
|
||||||
stdout:
|
stdout:
|
||||||
- 0% packet loss
|
- 0% packet loss
|
||||||
stderr: []
|
stderr: []
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
ping -c 2 192.168.1.2:
|
ping -c4 172.16.128.254:
|
||||||
exit-status: 0
|
exit-status: 0
|
||||||
stdout:
|
stdout:
|
||||||
- 0% packet loss
|
- 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:
|
|
||||||
exit-status: 0
|
|
||||||
stdout:
|
|
||||||
- 0% packet loss
|
|
||||||
stderr: []
|
stderr: []
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
|
@ -1,38 +1,29 @@
|
|||||||
---
|
---
|
||||||
- name: creation repertoir
|
- name: installation php et apache ...
|
||||||
file:
|
apt:
|
||||||
path: /home/
|
name:
|
||||||
state: directory
|
- apache2
|
||||||
- name: download and extract wordpress
|
- php
|
||||||
unarchive:
|
- php-mbstring
|
||||||
src: "{{ depl_url }}/{{ depl_wordpress }}"
|
- php-mysql
|
||||||
|
- mariadb-client
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: download and extract wordpress
|
||||||
|
unarchive:
|
||||||
|
src: https://fr.wordpress.org/latest-fr_FR.tar.gz
|
||||||
dest: /home/
|
dest: /home/
|
||||||
remote_src: yes
|
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
|
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:
|
copy:
|
||||||
src: wp-config.php
|
src: wp-config.php
|
||||||
dest: /home/wordpress/wp-config.php
|
dest: /home/wordpress/wp-config.php
|
||||||
|
|
||||||
- name: Attributions des permissions
|
- name: Attributions des permissions
|
||||||
file:
|
file:
|
||||||
path: /home/wordpress
|
path: /home/wordpress
|
||||||
recurse: yes
|
recurse: yes
|
||||||
owner: 33
|
|
||||||
group: 33
|
|
||||||
|
|
||||||
# - name: Fix permissions
|
|
||||||
# shell: chown -R www-data /var/www/wordpress/*
|
|
||||||
#
|
|
||||||
# - name: Update default Apache site
|
|
||||||
# lineinfile:
|
|
||||||
# dest=/etc/apache2/sites-enabled/000-default.conf
|
|
||||||
# regexp="(.)+DocumentRoot /var/www/html"
|
|
||||||
# line="DocumentRoot /var/www/wordpress"
|
|
||||||
# notify:
|
|
||||||
# - restart apache2
|
|
||||||
|
@ -8,4 +8,3 @@
|
|||||||
- snmp-agent
|
- snmp-agent
|
||||||
- lb-nfs-client
|
- lb-nfs-client
|
||||||
- post
|
- post
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user