fix keep extension on uploaded file on airgap install (#311)
* fix keep extension on uploaded file on airgap install * fix other tasks distribute K3s images Signed-off-by: dreamingdeer <dreamingdeer@yandex.ru> Co-authored-by: dreamingdeer <dreamingdeer@yandex.ru>
This commit is contained in:
parent
5dd8c3f5a3
commit
485ee0f285
|
@ -9,6 +9,7 @@
|
||||||
msg: "The Airgap role requires at least ansible-core 2.12"
|
msg: "The Airgap role requires at least ansible-core 2.12"
|
||||||
|
|
||||||
- name: Download k3s install script
|
- name: Download k3s install script
|
||||||
|
become: false
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: https://get.k3s.io/
|
url: https://get.k3s.io/
|
||||||
|
@ -67,7 +68,7 @@
|
||||||
when: ansible_architecture == 'x86_64'
|
when: ansible_architecture == 'x86_64'
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: /var/lib/rancher/k3s/agent/images/k3s-airgap-images-amd64.tar
|
dest: /var/lib/rancher/k3s/agent/images/{{ item | basename }}
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -82,7 +83,7 @@
|
||||||
when: ansible_architecture == 'aarch64'
|
when: ansible_architecture == 'aarch64'
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: /var/lib/rancher/k3s/agent/images/k3s-airgap-images-arm64.tar
|
dest: /var/lib/rancher/k3s/agent/images/{{ item | basename }}
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -97,7 +98,7 @@
|
||||||
when: ansible_architecture == 'armv7l'
|
when: ansible_architecture == 'armv7l'
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: /var/lib/rancher/k3s/agent/images/k3s-airgap-images-arm.tar
|
dest: /var/lib/rancher/k3s/agent/images/{{ item | basename }}
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
Loading…
Reference in New Issue