From 6a5f6ca240378c22302bfd5732b32fecdbb1eb3d Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 7 Oct 2014 09:24:01 -0400 Subject: [PATCH] CORE-1771 Add ping step to help key acceptance This commit adds a step where each node is checked for connectivity, a single node at a time, to enable easier ssh key acceptance if the user is operating with Ansible defaults to help ensure SSH connection security. Change-Id: Ia534b56e496624c4a73bea0dac70a93c107676d4 --- playbooks/step_ping.yml | 7 +++++++ playbooks/update_cloud.yml | 1 + 2 files changed, 8 insertions(+) create mode 100644 playbooks/step_ping.yml diff --git a/playbooks/step_ping.yml b/playbooks/step_ping.yml new file mode 100644 index 0000000..ab8170b --- /dev/null +++ b/playbooks/step_ping.yml @@ -0,0 +1,7 @@ +--- +- name: "Test Connectivity to all hosts" + hosts: all + serial: 1 + tasks: + ping: + where: instance_status == "ACTIVE" diff --git a/playbooks/update_cloud.yml b/playbooks/update_cloud.yml index c3e702b..f41c9c0 100644 --- a/playbooks/update_cloud.yml +++ b/playbooks/update_cloud.yml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. --- +- include: step_ping.yml - hosts: undercloud name: Disable Undercloud sudo: yes