hi I have this exact issue but dont understand the anwer "Creates is the way to go here!" could anyone explain in little more detail? thanks.
Den tisdagen den 6:e augusti 2013 kl. 03:09:21 UTC+2 skrev Jonathan Rowlands: > > Cool, thanks! > > On Monday, August 5, 2013 9:07:36 PM UTC-4, Michael DeHaan wrote: >> >> Creates is the way to go here! >> >> >> >> >> >> >> On Mon, Aug 5, 2013 at 8:46 PM, Jonathan Rowlands <[email protected]>wrote: >> >>> Sorry if this has been asked before... Is there a pattern to ensure a >>> command gets run once and only once on a machine? For instance if I want to >>> seed a database on the initial deploy but I would never want to run this >>> command again. I have been doing the following: >>> shell: mycommand && touch somefile creates=somefile >>> >>> It works but wasn't sure if there was a better way. >>> >>> Thanks, >>> Jon >>> >>> -- >>> 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 [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> >> >> -- >> Michael DeHaan <[email protected]> >> CTO, AnsibleWorks, Inc. >> http://www.ansibleworks.com/ >> >> -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d5ed55bf-56c0-4cf1-b782-20c54df47980%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
