I could not get code similar to yours to work. I did get it to work with
these changes:
- name: lv-test
command: lvdisplay /dev/vg{{ inventory_hostname_short }}/lv_ekb
register: lvdisp
-name: make-lv
lvol:
vg: vg_{{ inventory_hostname_short }}
lv: lv_ekb
size: 100%FREE
shrink: no
state: present
become: true
when: lvdisp.rc|int != 0
this seems to be working. Thanks so much for your help!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4fbae8be-2445-460a-8448-47eb0296e0b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.