Hi All,
I’m looking for the syntax to ping a remote host in ansible playbook. I created something as follows, but it seems the syntax is wrong.
-
name: assign floating ip
quantum_floating_ip:
login_username: ‘{{login_username}}’
login_password: ‘{{login_password}}’
login_tenant_name: ‘{{project_name}}’
instance_name: ‘{{instance_name}}’
network_name: ext_net
internal_network_name: mgmt_network
register: v_floating_ip -
name: validate connectivity to the controller
action: ping
ip_address: ‘{{v_floating_ip.public_ip}}’
I got the floating ip from the previous step successfully. Now I just would like to ping the floating ip to make sure it’s accessible. Any idea how I would be able to do?
Thanks,
YuLing