mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -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'. |
||
---|---|---|
.. | ||
cli | ||
compat | ||
config | ||
errors | ||
executor | ||
galaxy | ||
inventory | ||
module_utils | ||
modules | ||
parsing | ||
playbook | ||
plugins | ||
template | ||
utils | ||
vars | ||
__init__.py | ||
constants.py | ||
release.py |