run_once does that for a task, yes.
Long-form, may be useful, as well;
# all of em
- hosts: webservers
tasks:
- blarg
- blarg
# just on the head node
- hosts: webservers[0]
tasks:
- blarg
- blarg
# now some others
- hosts: dbservers
tasks:
- blarg
On Fri, Aug 8,
Super-sweet! For anyone who is wondering, the "full" documentation is in
here: http://docs.ansible.com/playbooks_delegation.html
Thanks!
On Friday, August 8, 2014 10:15:16 AM UTC-4, Michael Peters wrote:
>
> Ansible 1.7 added the new "run_once" keyword so that a given action
> will only ru
Ansible 1.7 added the new "run_once" keyword so that a given action
will only run once for that host list.
On Fri, Aug 8, 2014 at 10:08 AM, Guy Matz wrote:
> Hi! I have a few django servers . . . I would like to run a syncdb in my
> playbook, but only need/want one of the django servers in the
Hi! I have a few django servers . . . I would like to run a syncdb in my
playbook, but only need/want one of the django servers in the group to run
that play . . . do I need to designate a machine to run that or is there
an easier way?
Thanks!!
--
You received this message because you are