1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add attributes to some filesystem modules (#5960)

Add attributes to some filesystem modules.
This commit is contained in:
Felix Fontein 2023-02-24 09:25:15 +01:00 committed by GitHub
parent 51394b55a0
commit 3b97fad577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 70 additions and 11 deletions

View file

@ -17,6 +17,13 @@ description:
- Create, delete or activate ZFS boot environments. - Create, delete or activate ZFS boot environments.
- Mount and unmount ZFS boot environments. - Mount and unmount ZFS boot environments.
author: Adam Števko (@xen0l) author: Adam Števko (@xen0l)
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
name: name:
description: description:

View file

@ -25,6 +25,12 @@ author:
version_added: "3.0.0" version_added: "3.0.0"
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
path: path:
description: description:
@ -93,14 +99,12 @@ options:
- This option is silently ignored. This module always modifies file - This option is silently ignored. This module always modifies file
size in-place. size in-place.
notes:
- This module supports C(check_mode) and C(diff).
requirements: requirements:
- dd (Data Duplicator) in PATH - dd (Data Duplicator) in PATH
extends_documentation_fragment: extends_documentation_fragment:
- ansible.builtin.files - ansible.builtin.files
- community.general.attributes
seealso: seealso:
- name: dd(1) manpage for Linux - name: dd(1) manpage for Linux

View file

@ -19,6 +19,13 @@ module: filesystem
short_description: Makes a filesystem short_description: Makes a filesystem
description: description:
- This module creates a filesystem. - This module creates a filesystem.
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
state: state:
description: description:
@ -87,7 +94,6 @@ notes:
a C(blkid) command that is compatible with this module. However, these a C(blkid) command that is compatible with this module. However, these
packages conflict with each other, and only the C(util-linux) package packages conflict with each other, and only the C(util-linux) package
provides the command required to not fail when I(state=absent). provides the command required to not fail when I(state=absent).
- This module supports I(check_mode).
seealso: seealso:
- module: community.general.filesize - module: community.general.filesize
- module: ansible.posix.mount - module: ansible.posix.mount

View file

@ -17,6 +17,13 @@ module: lvg
short_description: Configure LVM volume groups short_description: Configure LVM volume groups
description: description:
- This module creates, removes or resizes volume groups. - This module creates, removes or resizes volume groups.
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
vg: vg:
description: description:

View file

@ -19,6 +19,13 @@ module: lvol
short_description: Configure LVM logical volumes short_description: Configure LVM logical volumes
description: description:
- This module creates, removes or resizes logical volumes. - This module creates, removes or resizes logical volumes.
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
vg: vg:
type: str type: str

View file

@ -24,6 +24,13 @@ requirements:
- align option (except 'undefined') requires parted 2.1 and above - align option (except 'undefined') requires parted 2.1 and above
- If the version of parted is below 3.1, it requires a Linux version running - If the version of parted is below 3.1, it requires a Linux version running
the sysfs file system C(/sys/). the sysfs file system C(/sys/).
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
device: device:
description: The block device (disk) where to operate. description: The block device (disk) where to operate.

View file

@ -20,6 +20,13 @@ description:
- Before using this module /etc/projects and /etc/projid need to be configured. - Before using this module /etc/projects and /etc/projid need to be configured.
author: author:
- William Leemans (@bushvin) - William Leemans (@bushvin)
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
type: type:
description: description:

View file

@ -15,6 +15,19 @@ module: zfs
short_description: Manage zfs short_description: Manage zfs
description: description:
- Manages ZFS file systems, volumes, clones and snapshots - Manages ZFS file systems, volumes, clones and snapshots
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: partial
details:
- In certain situations it may report a task as changed that will not be reported
as changed when C(check_mode) is disabled.
- For example, this might occur when the zpool C(altroot) option is set or when
a size is written using human-readable notation, such as C(1M) or C(1024K),
instead of as an unqualified byte count, such as C(1048576).
diff_mode:
support: full
options: options:
name: name:
description: description:
@ -39,12 +52,6 @@ options:
- See the zfs(8) man page for more information. - See the zfs(8) man page for more information.
type: dict type: dict
default: {} default: {}
notes:
- C(check_mode) is supported, but in certain situations it may report a task
as changed that will not be reported as changed when C(check_mode) is disabled.
For example, this might occur when the zpool C(altroot) option is set or when
a size is written using human-readable notation, such as C(1M) or C(1024K),
instead of as an unqualified byte count, such as C(1048576).
author: author:
- Johan Wiren (@johanwiren) - Johan Wiren (@johanwiren)
''' '''

View file

@ -20,6 +20,13 @@ description:
requirements: requirements:
- "A ZFS/OpenZFS implementation that supports delegation with C(zfs allow), including: Solaris >= 10, illumos (all - "A ZFS/OpenZFS implementation that supports delegation with C(zfs allow), including: Solaris >= 10, illumos (all
versions), FreeBSD >= 8.0R, ZFS on Linux >= 0.7.0." versions), FreeBSD >= 8.0R, ZFS on Linux >= 0.7.0."
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: none
diff_mode:
support: none
options: options:
name: name:
description: description: