documenting for posterity – ansible – wait for a dir to exist before continuing
May 23, 2013
Got a ridiculous process **cough**Jenkins**Cough** that you have to wait to create a dir before doing things?
This might help you as godawful ugly as it is.
– name: wait for a dir to exist – this is just ugly
shell: while `true`; do [ -d /var/lib/jenkins/plugins/openid/WEB-INF/lib/ ] && break; sleep 5; done