Specify host for a playbook task

33 views
Skip to first unread message

Michael Mahemoff

unread,
Mar 3, 2014, 3:51:16 PM3/3/14
to ansible...@googlegroups.com
Is there any way to override the current host for a given task?

I want to set up a recurring database copy, so I need to run some commands within a playbook (all of which apply only if a variable is turned on at the command-line). This sequence would begin by dumping the source database and copying it, so it needs to be a different hostname from the one being processed. I tried "host" "hosts" "hostnames" but none worked.

Adam Heath

unread,
Mar 3, 2014, 3:59:06 PM3/3/14
to ansible...@googlegroups.com
delegate_to:
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9563e962-9298-48ad-87df-162b63f126cd%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Michael Mahemoff

unread,
Mar 3, 2014, 4:38:36 PM3/3/14
to ansible...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages