forked from tim/k3s-ansible
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:
5
site.yml
5
site.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user