]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Run the full playbook after user,pubkeys
authorZack Cerza <zack@redhat.com>
Tue, 5 May 2015 22:48:42 +0000 (16:48 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 5 May 2015 23:33:06 +0000 (17:33 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh

index 40ed514be8c9689ce0da90a64c57821564c2d51d..f7cd76a35f4d82e57255b5fd6e75a27e4f985d23 100644 (file)
@@ -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