Adjust YAML in module docs (#10240)

* Adjust YAML in module docs.

* adjust modules

---------

Co-authored-by: Alexei Znamensky <russoz@gmail.com>
This commit is contained in:
Felix Fontein 2025-06-16 17:45:12 +02:00 committed by GitHub
parent e938ca5f20
commit e8f965fbf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
89 changed files with 2085 additions and 1675 deletions

View file

@ -8,7 +8,7 @@
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''
DOCUMENTATION = r"""
module: zpool
short_description: Manage ZFS zpools
version_added: 11.0.0
@ -35,7 +35,7 @@ options:
state:
description:
- Whether the pool should exist.
choices: [ present, absent ]
choices: [present, absent]
default: present
type: str
disable_new_features:
@ -80,12 +80,12 @@ options:
description:
- Special vdev role (for example V(log), V(cache), V(spare)).
type: str
choices: [ log, cache, spare, dedup, special ]
choices: [log, cache, spare, dedup, special]
type:
description:
- Vdev topology (for example V(stripe), V(mirror), V(raidz)).
type: str
choices: [ stripe, mirror, raidz, raidz1, raidz2, raidz3 ]
choices: [stripe, mirror, raidz, raidz1, raidz2, raidz3]
default: stripe
disks:
description:
@ -93,9 +93,9 @@ options:
required: true
type: list
elements: path
'''
"""
EXAMPLES = r'''
EXAMPLES = r"""
- name: Create pool "tank" on /dev/sda
community.general.zpool:
name: tank
@ -137,7 +137,7 @@ EXAMPLES = r'''
community.general.zpool:
name: tank
state: absent
'''
"""
import re
from ansible.module_utils.basic import AnsibleModule