Skip to content

Commit 8015b5f

Browse files
committed
Improve assembling no_proxy string
1 parent 6c9662f commit 8015b5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

etc/kayobe/ansible/deployment/deploy-github-runner.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
custom_env: |
1212
http_proxy={{ http_proxy | default('') }}
1313
https_proxy={{ https_proxy | default('') }}
14-
no_proxy=localhost,127.0.0.1,127.0.0.2,{{ no_proxy | default('') | join(',') }}
14+
no_proxy={{ (['localhost', '127.0.0.1', '127.0.0.2'] + (no_proxy | default([]))) | join(',') }}
1515
when: >
1616
http_proxy is defined or
1717
https_proxy is defined or
@@ -41,4 +41,3 @@
4141
with_dict: "{{ github_runners }}"
4242
loop_control:
4343
loop_var: runner
44-

0 commit comments

Comments
 (0)