Compare commits

...

5 Commits

2 changed files with 16 additions and 41 deletions

View File

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

View File

@ -1,11 +1,17 @@
--- ---
- name: creation repertoir - name: installation php et apache ...
file: apt:
path: /home/ name:
state: directory - apache2
- php
- php-mbstring
- php-mysql
- mariadb-client
state: present
- name: download and extract wordpress - name: download and extract wordpress
unarchive: unarchive:
src: "{{ depl_url }}/{{ depl_wordpress }}" src: https://fr.wordpress.org/latest-fr_FR.tar.gz
dest: /home/ dest: /home/
remote_src: yes remote_src: yes
owner: www-data owner: www-data
@ -25,14 +31,3 @@
recurse: yes recurse: yes
owner: 33 owner: 33
group: 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