community.general/lib/ansible/modules/system
Jesse Pretorius 0fc99c3939 Fix lvg module idempotency (#47620)
* Fix lvg module idempotency

In [1] changes were made to ensure that the physical
devices were appropriately filtered, but the dev_list
which is used to prepare the filter is modified from
the original arguments to resolve any symlinks. This
results in the existing devices given in the module
args to be left out of the filter, resulting
in the module trying to add the same device again
every time the task is executed.

In this PR we change dev_list to be a copy of the
module arguments so that we're able to add the given
pv list from the module arguments into the filter
as well, ensuring that there is idempotence when
running the task again.

[1] https://github.com/ansible/ansible/pull/38446

* Add lvg module idempotence test

To ensure that the lvg module is tested for idempotency,
we add a basic integration test.

Support for MacOS and FreeBSD are skipped because the
module does not currently support those platforms.
2018-11-05 12:50:21 +00:00
..
__init__.py
aix_inittab.py
aix_lvol.py
alternatives.py
at.py
authorized_key.py
awall.py
beadm.py
capabilities.py
cron.py Enable additional pylint rules and resolve issues found. (#47221) 2018-10-18 13:38:08 -07:00
cronvar.py
crypttab.py
dconf.py
debconf.py
facter.py
filesystem.py Fix get_fs_size for LVM filesystem 2018-10-19 01:20:33 +02:00
firewalld.py Use loop instead of obsolete with_items in example (#47246) 2018-10-18 17:54:07 -05:00
gconftool2.py
getent.py
group.py
hostname.py
interfaces_file.py interfaces_file: Add support for address_family 2018-10-22 20:51:59 +02:00
iptables.py Docs: iptables module cleanup (#46368) 2018-10-03 15:39:57 -04:00
java_cert.py
java_keystore.py
kernel_blacklist.py
known_hosts.py
locale_gen.py
lvg.py Fix lvg module idempotency (#47620) 2018-11-05 12:50:21 +00:00
lvol.py
make.py Docs: Cleanup make module docs (#46422) 2018-10-03 16:12:07 -04:00
mksysb.py
modprobe.py
mount.py Add examples for bind and unmount to mount module docs 2018-10-02 17:48:13 +02:00
nosh.py
ohai.py
open_iscsi.py
openwrt_init.py
osx_defaults.py
pam_limits.py
pamd.py pamd: fixes for multiple issues (#47695) 2018-10-30 10:21:22 -04:00
parted.py
ping.py
puppet.py
python_requirements_facts.py
reboot.py Add support for OpenBSD (#46147) 2018-09-28 16:07:44 -04:00
runit.py
seboolean.py seboolean: Fix issue with changing persistent SELinux boolean values (#22779) 2018-09-28 19:04:33 -04:00
sefcontext.py Remove get_exception from the remainder of the modules 2018-10-18 08:37:04 -07:00
selinux.py
selinux_permissive.py Docs: Cleanup selinux_permissive module docs (#46351) 2018-10-03 12:04:25 -05:00
seport.py
service.py
service_facts.py Make service_facts return value documentation visible (#47701) 2018-11-01 14:40:58 +10:00
setup.py
solaris_zone.py
svc.py
sysctl.py
systemd.py module/systemd: fix logic determining if a service needs to be enabled (#46245) 2018-09-28 12:05:48 -04:00
sysvinit.py
timezone.py
ufw.py Use syntax loop instead of with_items in example (#47241) 2018-10-18 17:55:19 -05:00
user.py Fix python3 problem in user module cve fix 2018-10-22 18:31:57 -07:00
vdo.py
xfconf.py