xci: roles: configure-network: Wait for connection when configuring the network 35/53335/7
authorMarkos Chandras <mchandras@suse.de>
Thu, 8 Mar 2018 19:51:51 +0000 (19:51 +0000)
committerMarkos Chandras <mchandras@suse.de>
Fri, 9 Mar 2018 14:00:52 +0000 (14:00 +0000)
commita40badcb175a6be138985ff17de06198097a5b16
tree2a468bc9291f9b204778c452f23181b50b3a1fcf
parent20b01a6b7163971201a5aa0d6db354d80657d17f
xci: roles: configure-network: Wait for connection when configuring the network

Ansible some times loses connection with the host after we configure its
network interface. This shouldn't happen since the host is actually up
and running. As a result of which, we need to fire-and-forget the
restart of the network service and then try to reach the SSH port. We
also need to make sure that all required packages are installed.
Finally, we drop the 'ignore_errors' parameter since we really need to
know when the networking configuration has failed.

Change-Id: I366192737b5c4e01964eaf187396eababbdc808e
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/roles/configure-network/tasks/main.yml