We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27fa8e4 commit db10adeCopy full SHA for db10ade
1 file changed
ansible/init-data-gzipper.yaml
@@ -46,15 +46,11 @@
46
mode: "0600"
47
48
49
- - name: Gzip the rendered content
+ - name: Gzip and base64 encode the rendered content
50
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
+ cat "{{ rendered_path }}" | gzip | base64 -w0
+ register: initdata_encoded
+ changed_when: false
58
59
# This block runs a shell script that calculates a hash value (PCR8_HASH) derived from the contents of 'initdata.toml'.
60
# The script performs the following steps:
0 commit comments