commit workaround for proxy11 in ansible
This commit is contained in:
parent
cc16ee5187
commit
9d34078176
3 changed files with 16 additions and 0 deletions
7
files/scripts/restart-broken-ipv6
Executable file
7
files/scripts/restart-broken-ipv6
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ping6 -q -c 1 -w 2 2600:: >& /dev/null
|
||||||
|
if [ $? -ne 0 ];
|
||||||
|
then
|
||||||
|
nmcli c up eth0
|
||||||
|
fi
|
1
files/scripts/restart-broken-ipv6.cron
Normal file
1
files/scripts/restart-broken-ipv6.cron
Normal file
|
@ -0,0 +1 @@
|
||||||
|
* * * * * root /usr/local/bin/restart-broken-ipv6
|
|
@ -197,3 +197,11 @@
|
||||||
- name: make sure selinux contexts are right on srv
|
- name: make sure selinux contexts are right on srv
|
||||||
command: restorecon -R /srv
|
command: restorecon -R /srv
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
- name: install restart ipv6 script on proxies that have problems keeping ipv6 routes
|
||||||
|
copy: src="{{ files }}/scripts/restart-broken-ipv6" dest=/usr/local/bin/restart-broken-ipv6 mode=0755
|
||||||
|
when: inventory_hostname.startswith('proxy11')
|
||||||
|
|
||||||
|
- name: setup cron job to check/fix ipv6
|
||||||
|
copy: src="{{ files }}/scripts/restart-broken-ipv6.cron" dest=/etc/cron.d/restart-broken-ipv6 mode=0644
|
||||||
|
when: inventory_hostname.startswith('proxy11')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue