Hello all:
First post here. I am a relatively new user to Ansible and find it quite powerful. Alas, I’ve run into some oddness that I haven’t been
able to figure out.
I have a playbook here: https://github.com/kwanlowe/ansible_examples/blob/master/playbooks/pvFreeDisk.yml
This playbook searches a host for “free” disks – i.e., ones with no partitions – and creates a new LVM partition and adds it to an existing
volume group. I didn’t see a playbook that did exactly what I needed so cobbled together the above.
On most systems it works fine. On RHEL7/CentOS7 it does as expected. On RHEL5 it breaks with the following (reformatted for easier reading):