Skip to content

Commit db10ade

Browse files
committed
fix: decrease encoding variations
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent 27fa8e4 commit db10ade

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

ansible/init-data-gzipper.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,11 @@
4646
mode: "0600"
4747

4848

49-
- name: Gzip the rendered content
49+
- name: Gzip and base64 encode the rendered content
5050
ansible.builtin.shell: |
51-
gzip -c "{{ rendered_path }}" > "{{ gz_path }}"
52-
changed_when: true
53-
54-
- name: Read gzip as base64
55-
ansible.builtin.slurp:
56-
path: "{{ gz_path }}"
57-
register: gz_slurped
51+
cat "{{ rendered_path }}" | gzip | base64 -w0
52+
register: initdata_encoded
53+
changed_when: false
5854

5955
# This block runs a shell script that calculates a hash value (PCR8_HASH) derived from the contents of 'initdata.toml'.
6056
# The script performs the following steps:

0 commit comments

Comments
 (0)