Skip to content

Commit 35fe393

Browse files
committed
fix: linting fixes
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent cd49749 commit 35fe393

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ansible/init-data-gzipper.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@
2626
dest: "{{ rendered_path }}"
2727
mode: "0600"
2828

29+
- name: Check if gzipped file already exists
30+
ansible.builtin.stat:
31+
path: "{{ gz_path }}"
32+
register: gz_file_stat
33+
2934
- name: Gzip the rendered content
3035
ansible.builtin.shell: |
3136
python3 gzipper.py "{{ rendered_path }}" "{{ gz_path }}"
37+
when: not gz_file_stat.stat.exists
3238

3339
- name: Read gzip as base64
3440
ansible.builtin.slurp:
@@ -46,4 +52,4 @@
4652
name: "initdata"
4753
namespace: "imperative"
4854
data:
49-
INITDATA: "{{ gz_slurped.content }}"
55+
INITDATA: "{{ gz_slurped.content }}"

0 commit comments

Comments
 (0)