|
4 | 4 | url: "{{ rke2_install_bash_url }}" |
5 | 5 | dest: "{{ rke2_install_script_dir }}/rke2.sh" |
6 | 6 | mode: 0700 |
| 7 | + timeout: "{{ rke2_artifact_fetch_timeout }}" |
7 | 8 | when: not rke2_airgap_mode |
8 | 9 |
|
9 | 10 | - name: Copy local RKE2 installation script |
|
36 | 37 | dest: "{{ rke2_artifact_path }}/sha256sum-{{ rke2_architecture }}.txt" |
37 | 38 | force: yes |
38 | 39 | mode: 0640 |
39 | | - timeout: 30 |
| 40 | + timeout: "{{ rke2_artifact_fetch_timeout }}" |
40 | 41 | - name: Download RKE2 artifacts and compare with checksums ( airgap mode ) |
41 | 42 | ansible.builtin.get_url: |
42 | 43 | url: "{{ rke2_artifact_url }}/{{ rke2_version }}/{{ item }}" |
43 | 44 | dest: "{{ rke2_artifact_path }}/{{ item }}" |
44 | 45 | mode: 0640 |
45 | 46 | checksum: "sha256:{{ rke2_artifact_url }}/{{ rke2_version }}/sha256sum-{{ rke2_architecture }}.txt" |
46 | | - timeout: 30 |
| 47 | + timeout: "{{ rke2_artifact_fetch_timeout }}" |
47 | 48 | with_items: "{{ rke2_artifact | reject('search', 'sha256sum') | list }}" |
48 | 49 | - name: Download RKE2 install script ( airgap mode ) |
49 | 50 | ansible.builtin.get_url: |
50 | 51 | url: "{{ rke2_install_bash_url }}" |
51 | 52 | dest: "{{ rke2_install_script_dir }}/rke2.sh" |
52 | 53 | mode: 0700 |
53 | | - timeout: 30 |
| 54 | + timeout: "{{ rke2_artifact_fetch_timeout }}" |
54 | 55 | rescue: |
55 | 56 | - name: "Remote downloading failed: Downloading locally and pushing to remote hosts ( airgap mode - download locally and push to remote )" |
56 | 57 | ansible.builtin.pause: # Slight delay to make sure you know it's gonna happen and have time to cancel |
|
73 | 74 | force: yes |
74 | 75 | mode: 0640 |
75 | 76 | owner: "{{ lookup('env', 'USER') }}" |
76 | | - timeout: 30 |
| 77 | + timeout: "{{ rke2_artifact_fetch_timeout }}" |
77 | 78 | - name: Downloading RKE2 artifacts locally |
78 | 79 | delegate_to: localhost |
79 | 80 | run_once: true |
|
83 | 84 | dest: "{{ rke2_airgap_copy_sourcepath }}/" |
84 | 85 | mode: 0640 |
85 | 86 | owner: "{{ lookup('env', 'USER') }}" |
| 87 | + timeout: "{{ rke2_artifact_fetch_timeout }}" |
86 | 88 | with_items: "{{ [rke2_artifact_url + '/' + rke2_version + '/'] | product(rke2_artifact) | map('join') | list + [rke2_install_bash_url] }}" |
87 | 89 | - name: Download RKE2 install script locally |
88 | 90 | delegate_to: localhost |
|
92 | 94 | dest: "{{ rke2_airgap_copy_sourcepath }}/rke2.sh" |
93 | 95 | mode: 0700 |
94 | 96 | owner: "{{ lookup('env', 'USER') }}" |
| 97 | + timeout: "{{ rke2_artifact_fetch_timeout }}" |
95 | 98 | - name: Copy local RKE2 files to remote hosts |
96 | 99 | ansible.builtin.copy: |
97 | 100 | src: "{{ rke2_airgap_copy_sourcepath }}/" |
|
0 commit comments