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
2023-10-21 02:18:36 +02:00
committed by GitHub
parent 95b2836dfc
commit e880f08d26
9 changed files with 72 additions and 0 deletions

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