Add attributes to various basic modules (#5964)

* Add attributes to various basic modules.

* Check and diff mode for pam_limits was added in #830.
This commit is contained in:
Felix Fontein 2023-02-20 17:28:47 +01:00 committed by GitHub
parent 755a49692d
commit 9de145482b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 280 additions and 34 deletions

View file

@ -13,21 +13,28 @@ DOCUMENTATION = '''
module: locale_gen
short_description: Creates or removes locales
description:
- Manages locales by editing /etc/locale.gen and invoking locale-gen.
- Manages locales by editing /etc/locale.gen and invoking locale-gen.
author:
- Augustus Kling (@AugustusKling)
- Augustus Kling (@AugustusKling)
extends_documentation_fragment:
- community.general.attributes
attributes:
check_mode:
support: full
diff_mode:
support: none
options:
name:
type: str
description:
- Name and encoding of the locale, such as "en_GB.UTF-8".
- Name and encoding of the locale, such as "en_GB.UTF-8".
required: true
state:
type: str
description:
- Whether the locale shall be present.
choices: [ absent, present ]
default: present
type: str
description:
- Whether the locale shall be present.
choices: [ absent, present ]
default: present
'''
EXAMPLES = '''