We have a playbook that restores some data from a backup to a host, and
afterwards we want to run another playbook that fixes up some things in
the backup, but that other playbook is more general, and does a whole
bunch of tasks, and affects all the hosts of this type. We'd rather only
run the tasks that we know we need to run (which are identified by a tag),
and only run them on the host they need to run on. Something like

- include: hosttype.yml
  limit: "{{ restorehost }}"
  tags: mytags

That actual code doesn't actually work, obviously.

Is there a way to do this within Ansible?

(We can do it by hand, obviously, but the restore playbook takes a long
time, and someone has to then remember to come along and run hosttype.yml
one when the restore is done. We could create a two-line shell script that
run both playbooks, but it'd be cool to just be able to do this with an
include.)

                                      -Josh ([email protected])

(apologies for the automatic corporate disclaimer that follows)

This email is intended for the person(s) to whom it is addressed and may 
contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, 
distribution, copying, or disclosure by any person other than the addressee(s) 
is strictly prohibited. If you have received this email in error, please notify 
the sender immediately by return email and delete the message and any 
attachments from your system.

-- 
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/22713.38002.786507.66685%40gargle.gargle.HOWL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to