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

@@ -3,6 +3,7 @@
hosts: proxmox
gather_facts: true
become: yes
environment: "{{ proxy_env | default({}) }}"
roles:
- role: proxmox_lxc
when: proxmox_lxc_configure
@@ -10,6 +11,7 @@
- name: Prepare k3s nodes
hosts: k3s_cluster
gather_facts: yes
environment: "{{ proxy_env | default({}) }}"
roles:
- role: lxc
become: true
@@ -26,18 +28,21 @@
- name: Setup k3s servers
hosts: master
environment: "{{ proxy_env | default({}) }}"
roles:
- role: k3s_server
become: true
- name: Setup k3s agents
hosts: node
environment: "{{ proxy_env | default({}) }}"
roles:
- role: k3s_agent
become: true
- name: Configure k3s cluster
hosts: master
environment: "{{ proxy_env | default({}) }}"
roles:
- role: k3s_server_post
become: true