mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ffee906c54
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'. |
||
---|---|---|
.. | ||
ansible |