Skip to content

Commit d626eea

Browse files
growroot.yml conditonal fix
1 parent 2509946 commit d626eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/kayobe/ansible/growroot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
pv: "{{ pvs.stdout | from_json }}"
8181
disk: "{{ pv.report[0].pv[0].pv_name }}"
8282
become: true
83-
when: lvm_check.rc != 1 or growroot_skip_lvm_check
83+
when: lvm_check.rc == 0 or not growroot_skip_lvm_check | bool
8484
# when: "'NOCHANGE' not in growpart.stdout"
8585
# Commenting out the conditional because growpart is already triggered by cloud-init - hence it emits NOCHANGE
8686
# Cloud-Inits growpart implementation has a bug https://bugzilla.redhat.com/show_bug.cgi?id=2122575

0 commit comments

Comments
 (0)