From: Zack Cerza Date: Tue, 19 May 2015 21:05:18 +0000 (-0600) Subject: Don't block while running the larger playbook X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33%2Fhead;p=ceph-cm-ansible.git Don't block while running the larger playbook 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 f7cd76a3..56452f7f 100644 --- a/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh +++ b/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh @@ -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