Skip to content

Commit 8399793

Browse files
committed
get proxy_remove working properly
1 parent fa857e3 commit 8399793

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

ansible/final.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
name: proxy
2828
vars:
2929
proxy_state: absent
30-
when: proxy_remove | bool == true
30+
when: proxy_remove | default(false) | bool == true

environments/common/inventory/group_vars/all/proxy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ proxy_http_address: "{{ (hostvars[groups['squid'].0 | default(None)] | default({
1313
# port of proxy - override if not using appliance squid group/role:
1414
proxy_http_port: "{{ squid_http_port }}"
1515

16+
# whether to remove the proxy configuration at the end of Ansible runs:
17+
# (useful for image build where this should not be captured in the image)
18+
proxy_remove: false
19+
1620
# full http proxy string - override if the above don't provide enough control:
1721
proxy_http_proxy: >-
1822
{% if groups['squid'] | length > 0 %}

environments/common/inventory/group_vars/builder/defaults.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ sssd_started: false
2626
sssd_enabled: false
2727
slurm_exporter_state: stopped
2828
appliances_mode: build
29+
proxy_remove: true

0 commit comments

Comments
 (0)