Le mercredi 2 septembre 2015 14:34:02 UTC+2, Brian Coca a écrit : > > hostvars are not usable in 'hosts:' clause, use group_by if you want > to create adhoc groups for use in subsequent plays. > > thanks, thought I discovered delegate_to which seems to be exacly what I need, i.e. a playbook on the new vm with preliminary tasks executed on hypervisors to setup the vm, then tasks on the vm, then I may add tasks delegated_to backup servers to register host for example. Nice!
-- 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/eca38d34-a6dd-48e1-8afe-aa0fc7f93704%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
