commit workaround for proxy11 in ansible

This commit is contained in:
Kevin Fenzi 2017-12-26 21:04:33 +00:00
parent cc16ee5187
commit 9d34078176
3 changed files with 16 additions and 0 deletions

View 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

View file

@ -0,0 +1 @@
* * * * * root /usr/local/bin/restart-broken-ipv6

View file

@ -197,3 +197,11 @@
- name: make sure selinux contexts are right on srv
command: restorecon -R /srv
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')