Compare commits

..

1 Commits

Author SHA1 Message Date
bb
6844d05974 chemin absolu + interface dhcp agence 2021-01-27 08:50:13 +01:00
6 changed files with 8 additions and 53 deletions

View File

@ -1,39 +0,0 @@
command:
ip r:
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.0.1:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 172.16.128.254:
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.1.2:
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

View File

@ -21,9 +21,9 @@ allow-hotplug enp0s9
iface enp0s9 inet static iface enp0s9 inet static
address 192.168.1.2 address 192.168.1.2
netmask 255.255.255.0 netmask 255.255.255.0
post-up ip route add 172.16.128.0/24 via 192.168.1.2 post-up /usr/sbin/ip route add 172.16.128.0/24 via 192.168.1.2
post-up ip route add 172.16.0.0/24 via 192.168.1.1 post-up /usr/sbin/ip route add 172.16.0.0/24 via 192.168.1.1
post-up ip route add 192.168.200.0/24 via 192.168.1.1 post-up /usr/sbin/ip route add 192.168.200.0/24 via 192.168.1.1
# up route add -net 172.16.128.0/24 gw 192.168.0.52 # up route add -net 172.16.128.0/24 gw 192.168.0.52
# up route add default gw 192.168.1.1 # up route add default gw 192.168.1.1

View File

@ -21,8 +21,8 @@ allow-hotplug enp0s9
iface enp0s9 inet static iface enp0s9 inet static
address 192.168.0.52 address 192.168.0.52
netmask 255.255.255.0 netmask 255.255.255.0
post-up ip route add 192.168.1.0/24 via 172.16.128.254/24 post-up /usr/sbin/ip route add 192.168.1.0/24 via 172.16.128.254/24
post-up ip route add 172.16.0.0/24 via 172.16.128.254/24 post-up /usr/sbin/ip route add 172.16.0.0/24 via 172.16.128.254/24
# up route add -net 192.168.1.0/24 gw 192.168.0.52 # up route add -net 192.168.1.0/24 gw 192.168.0.52
# post-up /bin/bash /root/iptables-vpn # post-up /bin/bash /root/iptables-vpn

View File

@ -9,3 +9,6 @@ iface lo inet loopback
allow-hotplug enp0s3 allow-hotplug enp0s3
iface enp0s3 inet dhcp iface enp0s3 inet dhcp
allow-hotplug enp0s8
iface enp0s8 inet dhcp

View File

@ -25,14 +25,6 @@
- {'regexp': "define\\('DB_USER', '(.)+'\\);", 'line': "define('DB_USER', '{{wp_mysql_user}}');"} - {'regexp': "define\\('DB_USER', '(.)+'\\);", 'line': "define('DB_USER', '{{wp_mysql_user}}');"}
- {'regexp': "define\\('DB_PASSWORD', '(.)+'\\);", 'line': "define('DB_PASSWORD', '{{wp_mysql_password}}');"} - {'regexp': "define\\('DB_PASSWORD', '(.)+'\\);", 'line': "define('DB_PASSWORD', '{{wp_mysql_password}}');"}
- name: Attributions des permissions
file:
path: /home/wordpress
recurse: yes
owner: 33
group: 33
# - name: Fix permissions # - name: Fix permissions
# shell: chown -R www-data /var/www/wordpress/* # shell: chown -R www-data /var/www/wordpress/*
# #

View File

@ -7,4 +7,3 @@
- ssh-cli - ssh-cli
- syslog-cli - syslog-cli
- post - post
- goss