Add option for install behind http_proxy (#384)

* Add option for install behind http_proxy

* Tidy up http_proxy usage
This commit is contained in:
Balázs Hasprai authored and GitHub committed 2023-10-21 00:18:36 +00:00
1 parent 95b2836dfc
commit e880f08d26
9 files changed
+72

No files matched your search

+9
View File
@@ -46,6 +46,15 @@
- /var/lib/rancher/
- /var/lib/cni/
- name: Remove K3s http_proxy files
file:
name: "{{ item }}"
state: absent
with_items:
- "{{ systemd_dir }}/k3s.service.d"
- "{{ systemd_dir }}/k3s-node.service.d"
when: proxy_env is defined
- name: Reload daemon_reload
systemd:
daemon_reload: yes