Hello,
I am updating some playbooks written initially for Ansible 2.2. and 2.3 to remove the features that were deprecated in Ansible 2.4+
The playbook is divided across multiple files, where main.yml would include: roles/play_a.yml (at playbook level), and then play_a.yml would call roles (e.g.) a1, a2, etc. Global variables are defined in group_vars/all, where group_vars/ is a sibling of main.yml:
playbook_dir
>
+- main.yml
+- group_vars/
> >
> `- all
+- roles/
>
+- play_a.yml
+- a1/
+- a2/
...
Now, if I change playbook-level include: in main.yml to import_playbook: then group variables are no longer available to roles included in the play… I have to make an additional group_vars/all file in the roles/ subdirectory.
Is this the expected behavior? Did I miss some important warning about the (relatively) new import_playbook: ?
Thanks,
Riccardo