2020-05-22 16:45:58 +02:00
|
|
|
---
|
|
|
|
- name: Proxy in the global shell environment
|
|
|
|
block:
|
2020-07-03 16:46:24 +02:00
|
|
|
- name: Install the proxy environment files
|
|
|
|
template: src={{ item }}.j2 dest=/etc/profile.d/{{ item }} owner=root group=root mode=0444
|
|
|
|
with_items:
|
|
|
|
- 10-caching-proxy.sh
|
|
|
|
- 10-java-caching-proxy.sh
|
|
|
|
when: enable_env_proxy
|
2020-05-22 16:45:58 +02:00
|
|
|
|
|
|
|
- name: Remove the proxy environment file if not required
|
2020-07-03 16:46:24 +02:00
|
|
|
file: dest=/etc/profile.d/{{ item }} state=absent
|
|
|
|
with_items:
|
|
|
|
- 10-caching-proxy.sh
|
|
|
|
- 10-java-caching-proxy.sh
|
|
|
|
when: not enable_env_proxy
|
2020-05-22 16:45:58 +02:00
|
|
|
|
|
|
|
tags: [ 'systemsetup', 'proxyenv' ]
|