Trigger restart of service only when certain files exist?

26 views
Skip to first unread message

Grayson Koonce

unread,
Mar 8, 2014, 9:00:24 PM3/8/14
to ansible...@googlegroups.com

Hi there,

I have a playbook that sets up an upstart script for a service that is not immediately deployed to the instance yet. There is a trigger on that call to restart the service, which of course fails because the app files are not there yet. They get deployed later on. Is it possible to trigger a notify of a service ONLY when that service actually exists?

Thanks,

Grayson

James Martin

unread,
Mar 9, 2014, 11:29:56 PM3/9/14
to ansible...@googlegroups.com
Why not deploy the service prior to the upstart script?  Or why not bundle them into a package?  There seems to be something I'm not understanding in the flow of your playbook. 

- James


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b52b71ad-6265-4b13-bff8-8693ffe4c5e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages