Skip to content

Commit 3b9c6dc

Browse files
committed
configure proxies for k3s too
1 parent d577d4b commit 3b9c6dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ansible/roles/proxy/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@
4343
path: /etc/systemd/system.conf.d/90-proxy.conf
4444
section: Manager
4545
option: DefaultEnvironment
46+
# k3s uses uppercase: https://docs.k3s.io/advanced#configuring-an-http-proxy
4647
value: >-
4748
"http_proxy={{ proxy_http_proxy }}"
4849
"https_proxy={{ proxy_http_proxy }}"
4950
"no_proxy={{ proxy_no_proxy }}"
51+
"HTTP_PROXY={{ proxy_http_proxy }}"
52+
"HTTPS_PROXY={{ proxy_https_proxy }}"
53+
"NO_PROXY={{ proxy_no_proxy }}"
5054
no_extra_spaces: true
5155
owner: root
5256
group: root

0 commit comments

Comments
 (0)