https://gist.github.com/jayunit100/054198d6d4827ac16796
might be useful to people who are sick of having to rerun ansible because one of the nodes was unreachable jayunit100 [5:35 PM] shared a Plain Text snippet: gistfile1.txt
# # # TEST THAT HOSTS ARE REACHABLE BEFORE STARTUP
cat <<EOF > tmp_reachable
- hosts: all
gather_facts: true
max_fail_percentage: 0
tasks:
- action: ping
EOF
scp tmp_reachable $MASTERNAME:/tmp/reachable.yml
until vagrant ssh $MASTERNAME -c "ansible-playbook /tmp/reachable.yml --private-key /home/openstack/jayskey.pem -vvv"
; do
echo "Try again ping task!"
done
# # #
No comments:
Post a Comment