19 lines
566 B
YAML
19 lines
566 B
YAML
---
|
|
- name: Proxy in the global shell environment
|
|
block:
|
|
- 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
|
|
|
|
- name: Remove the proxy environment file if not required
|
|
file: dest=/etc/profile.d/{{ item }} state=absent
|
|
with_items:
|
|
- 10-caching-proxy.sh
|
|
- 10-java-caching-proxy.sh
|
|
when: not enable_env_proxy
|
|
|
|
tags: [ 'systemsetup', 'proxyenv' ]
|