|
31 | 31 | get_attributes: false |
32 | 32 | get_checksum: false |
33 | 33 | get_mime: false |
34 | | - register: result |
| 34 | + register: custom_image_stat |
35 | 35 |
|
36 | 36 | - name: Fetch the custom image |
37 | 37 | ansible.builtin.get_url: |
38 | 38 | url: "{{ guestfs_custom_raw_image_url }}" |
39 | 39 | dest: "{{ custom_image_dir }}" |
40 | 40 | mode: "u=rw,g=r,o=r" |
41 | 41 | when: |
42 | | - - not result.stat.exists |
| 42 | + - not custom_image_stat.stat.exists |
43 | 43 | - guestfs_has_custom_raw_image_url|bool |
44 | 44 |
|
45 | 45 | - name: Check if the custom image sentinel file already exists |
|
48 | 48 | get_attributes: false |
49 | 49 | get_checksum: false |
50 | 50 | get_mime: false |
51 | | - register: result |
| 51 | + register: sentinel_stat |
52 | 52 |
|
53 | 53 | - name: Check the custom image |
54 | 54 | when: |
55 | | - - not result.stat.exists |
| 55 | + - not sentinel_stat.stat.exists |
56 | 56 | - guestfs_has_custom_raw_image_sha512sums|bool |
57 | 57 | block: |
58 | 58 | - name: Get the base name of the sha512sums file |
|
69 | 69 | get_attributes: false |
70 | 70 | get_checksum: false |
71 | 71 | get_mime: false |
72 | | - register: result |
| 72 | + register: sha512sums_stat |
73 | 73 |
|
74 | 74 | - name: Fetch the sha512sums file |
75 | 75 | ansible.builtin.get_url: |
76 | 76 | url: "{{ guestfs_custom_raw_image_sha512sums_url }}" |
77 | 77 | dest: "{{ custom_image_dir }}" |
78 | 78 | mode: "u=rw,g=r,o=r" |
79 | 79 | when: |
80 | | - - not result.stat.exists |
| 80 | + - not sha512sums_stat.stat.exists |
81 | 81 |
|
82 | 82 | - name: Compute checksum of something |
83 | 83 | ansible.builtin.command: |
|
97 | 97 | get_attributes: false |
98 | 98 | get_checksum: false |
99 | 99 | get_mime: false |
100 | | - register: result |
| 100 | + register: custom_source_stat |
101 | 101 |
|
102 | 102 | - name: Build the custom source |
103 | 103 | ansible.builtin.template: |
104 | 104 | src: "{{ role_path }}/templates/custom-source.j2" |
105 | 105 | dest: "{{ custom_source }}" |
106 | 106 | mode: "u=rw,g=r,o=r" |
107 | 107 | when: |
108 | | - - not result.stat.exists |
| 108 | + - not custom_source_stat.stat.exists |
109 | 109 |
|
110 | 110 | - name: Check if the custom index exists |
111 | 111 | ansible.builtin.stat: |
112 | 112 | path: "{{ custom_index }}" |
113 | 113 | get_attributes: false |
114 | 114 | get_checksum: false |
115 | 115 | get_mime: false |
116 | | - register: result |
| 116 | + register: custom_index_stat |
117 | 117 |
|
118 | 118 | - name: Build the custom index |
119 | 119 | ansible.builtin.template: |
120 | 120 | src: "{{ role_path }}/templates/custom-index.j2" |
121 | 121 | dest: "{{ custom_index }}" |
122 | 122 | mode: "u=rw,g=r,o=r" |
123 | 123 | when: |
124 | | - - not result.stat.exists |
| 124 | + - not custom_index_stat.stat.exists |
125 | 125 |
|
126 | 126 | - name: Show rolling distribution release warning |
127 | 127 | ansible.builtin.debug: |
|
0 commit comments