Can you set a new host in a role? roles/vm/tasks/main.yml
- name task 1 - name task 2 -host tasks: - name: task on delegate host On Tuesday, January 3, 2017 at 2:53:58 PM UTC-5, Brian Coca wrote: > > Because you are consuming the facts of the inventory_hostname, not > delegate_to host (this only overrides the connection variables). > > - hosts: new_vm > tasks: > - package: > > will work. > > ---------- > Brian Coca > -- 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/4b61db5e-af80-4f6e-b5d2-14d38280aac8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
