Is there a Pattern for having one machine in a cluster perform an action?
44 views
Skip to first unread message
Guy Matz
unread,
Aug 8, 2014, 10:08:35 AM8/8/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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!!
Michael Peters
unread,
Aug 8, 2014, 10:15:16 AM8/8/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Ansible 1.7 added the new "run_once" keyword so that a given action
will only run once for that host list.