From 07cfd008ea7e6d3b2efe1c913efa537511cb4846 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 5 May 2015 16:48:42 -0600 Subject: [PATCH] Run the full playbook after user,pubkeys Signed-off-by: Zack Cerza --- .../templates/triggers/install/post/cephlab_ansible.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh b/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh index 40ed514..f7cd76a 100644 --- a/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh +++ b/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh @@ -13,7 +13,10 @@ nc -vz $name 22 mkdir -p /var/log/ansible -# Tell ansible to create users and populate authorized_keys pushd $ANSIBLE_CM_PATH -ANSIBLE_SSH_PIPELINING=1 ansible-playbook testnodes.yml -vv --limit $name* --tags user,pubkeys 2>&1 | tee /var/log/ansible/$name.log +export ANSIBLE_SSH_PIPELINING=1 +# Tell ansible to create users and populate authorized_keys +ansible-playbook testnodes.yml -v --limit $name* --tags user,pubkeys 2>&1 > /var/log/ansible/$name.log +# Now run the rest of the playbook. If it fails, at least we have access. +ansible-playbook testnodes.yml -v --limit $name* --skip-tags user,pubkeys 2>&1 >> /var/log/ansible/$name.log popd -- 2.39.5