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

   environment:
     http_proxy: http://some.proxy.de
     https_proxy: http://some.proxy.de

#OTHER PLAYBOOKS
  - import_playbook: ansible_playbooks/docker_setup.yaml
    environment:
     http_proxy: http://some.proxy.de
     https_proxy: http://some.proxy.de



  - import_playbook: ansible_playbooks/unipostgresql.yaml
    environment:
     http_proxy: http://some.proxy.de
     https_proxy: http://some.proxy.de

______________________________________________________

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?

-- 
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/42c288f1-816c-4719-a305-46ec84f42541%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to