Waiting for network to be ready, then run ansible-pull.
This commit is contained in:
parent
ed0ef3428f
commit
539fa6ddd5
@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# waiting for dns stack to be ready
|
||||||
|
while true; do
|
||||||
|
[[ "$(dig +short {{ ansible_local.domain.serverfqdn }})" == "{{ ansible_local.domain.serverip }}" ]] && break;
|
||||||
|
done
|
||||||
|
|
||||||
# Aggiorna crontab e logrotate forzosamente.
|
# Aggiorna crontab e logrotate forzosamente.
|
||||||
echo "$(date --rfc-3339=seconds) Loading and running init-ansible.sh"
|
echo "$(date --rfc-3339=seconds) Loading and running init-ansible.sh"
|
||||||
/usr/bin/curl -sSL4 http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/init-ansible.sh | /bin/bash
|
/usr/bin/curl -sSL4 http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/init-ansible.sh | /bin/bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user