Hi there,
I’m having problems with implementing a play from this article that waits for a server to reboot and then carries on with other tasks. The playbook runs fine down to this task
https://support.ansible.com/hc/en-us/articles/201958037-Reboot-a-server-and-wait-for-it-to-come-back
The playbook I have performs several functions (which I’ve commented out for testing including the server reboot function for now) and then reboots the server. The wait function is give me an error though
- name: Wait for server reboot
local_action: wait_for host={{ ipaddress }} state=started delay=30 timeout=300
sudo: false
TASK [Wait for server reboot] **************************************************
task path: /etc/ansible/playbooks/nodeprereqs.yml:27
fatal: [ipaddress]: FAILED! => {"failed": true, "msg": "float object has no element 155"}
NO MORE HOSTS LEFT *************************************************************
I’ve tried several variants of the play all getting the same error above. Right now the current playbook looks like this (minus the other comment out tasks)