From: Zack Cerza Date: Tue, 5 May 2015 22:48:42 +0000 (-0600) Subject: Run the full playbook after user,pubkeys X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=07cfd008ea7e6d3b2efe1c913efa537511cb4846;p=ceph-cm-ansible.git Run the full playbook after user,pubkeys Signed-off-by: Zack Cerza --- 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