]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Don't block while running the larger playbook 33/head
authorZack Cerza <zack@redhat.com>
Tue, 19 May 2015 21:05:18 +0000 (15:05 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 19 May 2015 21:05:18 +0000 (15:05 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh

index f7cd76a35f4d82e57255b5fd6e75a27e4f985d23..56452f7fd676642f067eebe28bef8d3cf414b048 100644 (file)
@@ -18,5 +18,7 @@ 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
+# Background it so that the request doesn't block for this part and end up 
+# causing the client to retry, thus spawning this trigger multiple times
+ansible-playbook testnodes.yml -v --limit $name* --skip-tags user,pubkeys 2>&1 >> /var/log/ansible/$name.log &
 popd