I think the feature should be available because sometimes you need to run a task once, and then run the the playbook again, executing it by using some new result(s) ( such as content read from a file on a remote server)
On Friday, July 25, 2014 12:30:02 PM UTC-7, Michael DeHaan wrote: > > It will probably just be easiest to make it an error to use run_once with > serial, because I don't want to have to pass a parameter to runner like > "run_once_has_ran" and keep an internal hash for this. > > In your case, solve the problem by having another play for the "run_once" > steps outside of the host loop, that just affects localhost (or > groupname[0]) > > > On Fri, Jul 25, 2014 at 2:25 PM, James Cammarata <[email protected] > <javascript:>> wrote: > >> Yeah go ahead and open an issue for this, as it should only run once no >> matter what. >> >> Thanks! >> >> >> On Fri, Jul 25, 2014 at 9:08 AM, Michael Peters <[email protected] >> <javascript:>> wrote: >> >>> I'm testing out the new run_once feature and overall it's working >>> great. But I then tried it in an upgrade playbook using serial. The >>> task is no longer run just once per-play, it's run once >>> per-host-group. So for a serial of 2 in a target group of 10 servers >>> it's run once per pair, so 5 times. >>> >>> This seems like a bug to me, but I just wanted to make sure before I >>> filed a ticket on it. >>> >>> -- >>> 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] <javascript:>. >>> To post to this group, send email to [email protected] >>> <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/ansible-project/CAJQqANeXOLpmD%2BDQ_qafQTQS1dw5KjYnD%2Bdupk2mgg%2BFsRJfyQ%40mail.gmail.com >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAMFyvFgxDrbJJJy5qm2wPe7COujHFetbEmMPRG42kSg0%2B7PGWg%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/ansible-project/CAMFyvFgxDrbJJJy5qm2wPe7COujHFetbEmMPRG42kSg0%2B7PGWg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/edc835d3-a413-4541-bebf-1787e536751f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
