mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-16 01:45:25 -07:00
Physical devices are listed using 'pvs' command. Then, for '/dev/dm-*' devices 'dmsetup' command is used to find pv_name. An error occurs when 'pvs' command list an unknown device: $ pvs --noheadings -o pv_name,vg_name --separator ';' /dev/dm-0;vg_var /dev/mapper/sdb3_backups;vg_data_backups $ dmsetup info -C --noheadings -o name /dev/dm-0 Device dm-0 not found Then the module fails: { "changed": false, "err": "Device dm-0 not found\nCommand failed\n", "msg": "Failed executing dmsetup command.", "rc": 1 } This failure can be avoided when the unknown device isn't used in module parameter 'pvs'. |
||
---|---|---|
.. | ||
cloud | ||
clustering | ||
commands | ||
crypto | ||
database | ||
files | ||
identity | ||
inventory | ||
messaging | ||
monitoring | ||
net_tools | ||
network | ||
notification | ||
packaging | ||
remote_management | ||
source_control | ||
storage | ||
system | ||
utilities | ||
web_infrastructure | ||
windows | ||
__init__.py |