On 20 November 2013 22:23, Yoann DAVID <[email protected]> wrote:
> roles/usertest/tasks/main.yml : nothing changed > >> - include: tasks_user.yml user=$item >> with_items: $users >> > This is your problem. "include:" combined with "with_items" is a non documented, non supported idiom. While this works when defined in a vars file ( = same variables for all hosts, where this can work in a consequent way0), it can't when defined at inventory level, which group_vars/all is, and where you could give different variable values for different hosts: this can't work, as include+with items is parsed at the beginning, before inventory variables is looked at! Don't try both though, It is a deprecated feature in 1.4, and will probably be removed in 1.5. Serge -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
