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 package files 2016-12-08 11:22:22 -05:00
aix_inittab.py Port the aix_inittab to python 3 (#45678) 2018-09-17 19:01:38 -04:00
aix_lvol.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
alternatives.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
at.py at: PEP8 compliancy and doc fixes (#30881) 2017-10-30 00:56:54 +01:00
authorized_key.py Do not reset permissions in checkmode 2018-09-19 14:40:33 +02:00
awall.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
beadm.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
capabilities.py Ansible system module: sanity pep8 fixes (#32314) 2017-11-07 13:46:55 +01:00
cron.py Enable additional pylint rules and resolve issues found. (#47221) 2018-10-18 13:38:08 -07:00
cronvar.py Ansible system module: sanity pep8 fixes (#32314) 2017-11-07 13:46:55 +01:00
crypttab.py Ansible system module: sanity pep8 fixes (#32314) 2017-11-07 13:46:55 +01:00
dconf.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
debconf.py Update debconf example (#33397) 2017-11-30 18:07:11 +10:00
facter.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
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 PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
getent.py getent: PEP8 compliancy and doc fixes (#30885) 2017-10-30 00:58:04 +01:00
group.py Fix introduction version for parameter "local" in module "group" (#43719) 2018-08-06 11:40:19 -04:00
hostname.py Add Sangoma linux (#45430) 2018-09-10 14:20:22 -04:00
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 Clarify how java_cert checks keystore certificates (#26567) 2018-09-12 15:51:37 -05:00
java_keystore.py [docs] required arguments: name (#43758) 2018-08-07 15:49:52 -04:00
kernel_blacklist.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
known_hosts.py Fixed hash_host option in known_hosts module. Fixes #44284 2018-08-21 10:28:45 -07:00
locale_gen.py Remove deprecated get_exception API 2018-02-05 23:39:56 -05:00
lvg.py Fix lvg module idempotency (#47620) 2018-11-05 12:50:21 +00:00
lvol.py Documentation change for resizefs (#43224) 2018-07-25 00:22:24 +02:00
make.py Docs: Cleanup make module docs (#46422) 2018-10-03 16:12:07 -04:00
mksysb.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
modprobe.py modprobe: PEP8 compliancy and doc fixes (#31255) 2017-10-08 09:21:58 -04:00
mount.py Add examples for bind and unmount to mount module docs 2018-10-02 17:48:13 +02:00
nosh.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
ohai.py Fix the docs link to Ohai in the Ohai module (#33788) 2018-03-08 17:00:17 -08:00
open_iscsi.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
openwrt_init.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
osx_defaults.py change OS X to macOS (#41294) 2018-06-26 14:09:23 -04:00
pam_limits.py Adds example of using wildcard domain in pam_limits (#43391) 2018-08-02 17:23:46 +10:00
pamd.py pamd: fixes for multiple issues (#47695) 2018-10-30 10:21:22 -04:00
parted.py Stop throwing TypeErrors (#43036) 2018-07-22 02:31:46 -04:00
ping.py Clarify which ping module to use (#34935) 2018-01-17 14:02:06 +00:00
puppet.py Add additional puppet options (#42218) 2018-07-06 13:52:17 -04:00
python_requirements_facts.py New module: Python Requirements Facts (#43108) 2018-08-21 09:19:10 +10:00
reboot.py Add support for OpenBSD (#46147) 2018-09-28 16:07:44 -04:00
runit.py Fixed spelling error in runit module (#35948) 2018-02-10 21:13:55 +05:30
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 Fixed check_mode status to be the same as normal execution (#40721) 2018-05-25 17:06:11 -04:00
selinux_permissive.py Docs: Cleanup selinux_permissive module docs (#46351) 2018-10-03 12:04:25 -05:00
seport.py Clean up BOTMETA.yml (#44574) 2018-08-24 19:43:35 -04:00
service.py Mass nuke deprecated items that are easily removed. ci_complete (#44320) 2018-08-20 16:26:10 -05:00
service_facts.py Make service_facts return value documentation visible (#47701) 2018-11-01 14:40:58 +10:00
setup.py Setup module: use C() formatting function in parameter descriptions, add a task based example (#42411) 2018-07-09 15:08:01 -04:00
solaris_zone.py Clean up BOTMETA.yml (#44574) 2018-08-24 19:43:35 -04:00
svc.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
sysctl.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
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 Fix referenced before assignment in sysvinit module (#42695) 2018-08-15 09:59:03 -04:00
timezone.py BSDTimezone: distinguish UTC and Etc/UTC (#41234) 2018-06-11 10:27:50 -04:00
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 Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
xfconf.py New module: Xfconf-based management of the Xfce 4 DE (#28112) 2018-09-19 18:10:22 -04:00