Imagine following situation:
I have a big main.yaml playbook file, where I include roles and import many different other playbooks.
I am behind a corporate proxy which I have to include in the main playbook with the environment field.
For this I have an example of my main yaml file:
__________________________________________________
---
#FORCED ROLES
- hosts: all
become: true
roles:
- ANXS.nodejs
- ANXS.fail2ban
#OTHER PLAYBOOKS
- import_playbook: ansible_playbooks/docker_setup.yaml
- import_playbook: ansible_playbooks/unipostgresql.yaml
______________________________________________________
The roles are using the proxys as intended.
Sadly, the imported playbooks ignore the environment field and those 2 playbooks fail.
Is there a way to achieve this without MODIFYING each imported playbook?