Hi there,
I’m reusing some roles between many hosts and I have a problem where some hosts
require me to use a proxy for internet access. I want to know if there is an
easy way to use the same role but only defining the environment http_proxy
variable for only those hosts that need it?
- name: "Install sysv-rc-conf on Ubuntu"
apt: name=sysv-rc-conf state=present
when: ansible_distribution == 'Ubuntu'
environment:
http_proxy: http://172.16.0.1:8080
Thanks,
Marc
--
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].
For more options, visit https://groups.google.com/groups/opt_out.