Skip to content

Commit 1e95ae7

Browse files
committed
Write cluster_image uuid to file
1 parent a4bc3cf commit 1e95ae7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

image-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,12 @@
2121
- name: Print cluster_image UUID
2222
debug:
2323
msg: "{{ cluster_image }}"
24+
25+
- name: Write cluster_image UUID to file
26+
copy:
27+
dest: "{{ playbook_dir }}/cluster_image_uuid.txt"
28+
content: "{{ cluster_image }}"
29+
when:
30+
- write_cluster_image_uuid_file is defined
31+
- write_cluster_image_uuid_file
2432
when: cluster_state is not defined or (cluster_state is defined and cluster_state != "absent")

0 commit comments

Comments
 (0)