mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Adjust booleans in system modules (#5153)
* Adjust booleans in system modules. * Fix some IP addresses Co-authored-by: Sandra McCann <samccann@redhat.com> Co-authored-by: Sandra McCann <samccann@redhat.com>
This commit is contained in:
parent
bcecf2dcdc
commit
be2de15c66
39 changed files with 162 additions and 146 deletions
|
@ -44,7 +44,7 @@ options:
|
|||
type: str
|
||||
pvresize:
|
||||
description:
|
||||
- If C(yes), resize the physical volume to the maximum available size.
|
||||
- If C(true), resize the physical volume to the maximum available size.
|
||||
type: bool
|
||||
default: false
|
||||
version_added: '0.2.0'
|
||||
|
@ -60,9 +60,9 @@ options:
|
|||
default: present
|
||||
force:
|
||||
description:
|
||||
- If C(yes), allows to remove volume group with logical volumes.
|
||||
- If C(true), allows to remove volume group with logical volumes.
|
||||
type: bool
|
||||
default: no
|
||||
default: false
|
||||
seealso:
|
||||
- module: community.general.filesystem
|
||||
- module: community.general.lvol
|
||||
|
@ -102,7 +102,7 @@ EXAMPLES = r'''
|
|||
community.general.lvg:
|
||||
vg: resizableVG
|
||||
pvs: /dev/sda3
|
||||
pvresize: yes
|
||||
pvresize: true
|
||||
'''
|
||||
|
||||
import itertools
|
||||
|
@ -258,7 +258,7 @@ def main():
|
|||
else:
|
||||
module.fail_json(msg="Failed to remove volume group %s" % (vg), rc=rc, err=err)
|
||||
else:
|
||||
module.fail_json(msg="Refuse to remove non-empty volume group %s without force=yes" % (vg))
|
||||
module.fail_json(msg="Refuse to remove non-empty volume group %s without force=true" % (vg))
|
||||
|
||||
# resize VG
|
||||
current_devs = [os.path.realpath(pv['name']) for pv in pvs if pv['vg_name'] == vg]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue