community.general/lib/ansible/modules/system
Reto Gantenbein 466e1b289b Add thin pool / volume managment to lvol (#19312)
* add functionality to create thin pool / volume on Linux LVM to lvol module

add `thinpool' parameter.
change `lv' parameter to not required.

To create thin poll, specify `thinpool'(, `vg' and `size') parameter and omit `lv' parameter.
It will create thin pool, nameed by `thinpool' parameter.

To create thin volume, specify both `thinpool' and `lv' parameter (also `vg' and `size' paramter is need).
It will create thin volume on `thinpool' pool, named by `lv' parameter.

Thin volume and pool can delete whith 'state=absent' parameter.
Thin volume is resizable like normal volume.
Thin pool can extend, but not reduce. This limitation is in Linux's LVM.

* Add thin volume support

- Based on f816618

- Indicate that either lv or thinpool are required parameters using
AnsibleModule's required_one_of.

- Resolve conflict with snapshot functionality

* Fix typo in documentation

* Fix and simplify logical volume check

* Rebase fixes

* Convert examples to native YAML syntax

* Fix failure with snapshot creation

* Properly fail when trying to snapshot a thinpool volume

* Don't fail when no size given for thin volume snapshot

Fixes ansible/ansible-modules-extras#2478

* Convert old style required property sneaked in through rebase

* Fix 'too many leading #' syntax check
2018-01-26 08:49:51 +00:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
aix_inittab.py Ansible system module: sanity pep8 fixes (#32314) 2017-11-07 13:46:55 +01:00
aix_lvol.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
alternatives.py Alternatives module: Add a check that the path to the executable exist (#24800) 2017-08-18 15:31:06 -04:00
at.py at: PEP8 compliancy and doc fixes (#30881) 2017-10-30 00:56:54 +01:00
authorized_key.py authorized_key: remove deprecated get_exception API (#33277) 2017-12-02 14:24:30 +01:00
awall.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
beadm.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
capabilities.py Ansible system module: sanity pep8 fixes (#32314) 2017-11-07 13:46:55 +01:00
cron.py Bulk autopep8 (modules) 2017-12-07 20:25:55 +00: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 Update metadata to 1.1 2017-08-15 23:12:08 -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 Filesystem: refactor, improvements, add tests (#25519) 2018-01-11 11:10:14 -05:00
firewalld.py firewalld: Implement zone operations (#32845) 2017-12-12 09:34:41 +01: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
gluster_volume.py Module DOCUMENTATION should match argspec (#34895) 2018-01-16 12:18:51 +00:00
group.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
hostname.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
interfaces_file.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
iptables.py Adding param "rule_num" for insert action to iptables module (#33708) 2017-12-15 16:08:40 -06:00
java_cert.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
kernel_blacklist.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
known_hosts.py Fix section in known_hosts documentation 2017-09-10 20:24:46 -07:00
locale_gen.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
lvg.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
lvol.py Add thin pool / volume managment to lvol (#19312) 2018-01-26 08:49:51 +00:00
make.py Add support to pass a Makefile (#31853) 2017-10-18 11:19:24 +01:00
mksysb.py new module: AIX rootvg backup image using mksysb (#30460) 2017-10-12 11:58:43 -04:00
modprobe.py modprobe: PEP8 compliancy and doc fixes (#31255) 2017-10-08 09:21:58 -04:00
mount.py Update mount.py (#23906) 2017-12-13 11:37:01 -06:00
nosh.py nosh system module: fixes and improvements (#32014) 2017-10-23 09:19:22 -04:00
ohai.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
open_iscsi.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
openwrt_init.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
osx_defaults.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
pam_limits.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
pamd.py Update pamd.py to allow module path with slashes (#32197) 2018-01-18 09:57:12 +05:30
parted.py [parted] Fixes incorrect arg spec and check (#27839) 2017-08-29 22:18:22 +02:00
ping.py Clarify which ping module to use (#34935) 2018-01-17 14:02:06 +00:00
puppet.py Fix error in YAML example 2017-11-07 16:30:53 +01:00
runit.py Logger-process is not considered for pid and state (#34905) 2018-01-17 10:50:28 -05:00
seboolean.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
sefcontext.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
selinux.py Module DOCUMENTATION should match argspec (#34895) 2018-01-16 12:18:51 +00:00
selinux_permissive.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
seport.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
service.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
service_facts.py service_facts module (#34065) 2018-01-08 13:35:16 -08:00
setup.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
solaris_zone.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
svc.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
sysctl.py Remove sysctl entries when state=absent (#31486) 2017-10-10 09:01:33 -07:00
systemd.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
timezone.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
ufw.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
user.py user: Fix add for SuSE Linux Enterprise 11 (#27015) 2017-12-13 15:30:51 -06:00