OK, I think I see it. There is no such thing as overriding playbooks.
Playbooks are a series of plays that are a series of roles and tasks to
execute, and tasks use variables.
The overriding here with ansible happens with variables in the inventory.
Given your case, you would define the variable user_groups in the
inventory, as a group variable:
group_vars/all
- user_groups:
> - sysadmin
>
and
group_vars/dev
> - user_groups:
> - development
>
And then you only keep the play targetting the all group.
Personally, I rarely use vars defined in the playbook, except when I just
need some "constant".
--
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/CAEhzMJCybRgZop1rgRhP6AYmYrMCAdYcHmcm7S_Pp_%3DnzJVRSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.