Hi,
So far, ansible-extra-modules includes only two modules system/lvol.py and system/lvg.py which are responsible for configuring logical volumes and volume groups respectively.
There’s no module for working with physical volumes. Therefore, I’m going to address the following absence and hope to send out PR with system/lpv.py module within few days.
The another flaw I’ve noticed there’s no built-in command to modules for obtaining the list of LVM entities. I’ve tried to add such https://github.com/ansible/ansible-modules-extras/pull/2622 then i suddenly realized that this PR violates module developing guidelines (perhaps, I should abandon that PR). That can’t be a problem, since hardware facts could report lvm facts. However, it lacks the obtaining of any facts about pvs. I’ve tried to address that in the following PR https://github.com/ansible/ansible/pull/16773
It seems that in order to address the lack of modules for playing with pvs only 2 things need to be done: pvs for the facts and lpv module. I’m still new to Ansible and may be wrong about all of that.
Devs, what do you think? Did i choose appropriate strategy for extending LVM toolset?
If not, what then could you suggest?
Many thanks!