Forgive this blind man... Thanks On Friday, October 17, 2014 3:01:16 PM UTC-4, Michael Peters wrote:
> What version of ansible are you running? > > On Fri, Oct 17, 2014 at 1:45 PM, Tiglath <[email protected] <javascript:>> > wrote: > > > > > > I added run_once because despite "local_action" it seems to run once > per > > host but locally. > > > > The error below contradicts the documentation. Or so it seems. > > > > > > 1: > > > > > > -- > > > > hosts: appservers > > > > tasks: > > > > - name: Get the latest release. > > > > local_action: shell grep app /tmp/releases | cut -f2 -d':' | tr -d "," > | > > tr -d "'" > > > > register: rel > > > > run_once: true > > > > > > ERROR: run_once is not a legal parameter in an Ansible task or handler > > > > Or 2: > > > > Run Once > > > > New in version 1.7. > > > > In some cases there may be a need to only run a task one time and only > on > > one host. This can be achieved by configuring “run_once” on a task: > > > > --- > > # ... > > > > tasks: > > > > # ... > > > > - command: /opt/application/upgrade_db.py > > run_once: true > > > > # ... > > > > -- > > 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/49998d77-13ba-40c4-b885-7063ecc767cf%40googlegroups.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]. 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/a05fdc40-edd0-4c56-b033-784133ab861e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
