summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/general/plugins/modules/sysrc.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
commit7fec0b69a082aaeec72fee0612766aa42f6b1b4d (patch)
treeefb569b86ca4da888717f5433e757145fa322e08 /ansible_collections/community/general/plugins/modules/sysrc.py
parentReleasing progress-linux version 7.7.0+dfsg-3~progress7.99u1. (diff)
downloadansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.tar.xz
ansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/community/general/plugins/modules/sysrc.py')
-rw-r--r--ansible_collections/community/general/plugins/modules/sysrc.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/ansible_collections/community/general/plugins/modules/sysrc.py b/ansible_collections/community/general/plugins/modules/sysrc.py
index 9652b629a..6780975d4 100644
--- a/ansible_collections/community/general/plugins/modules/sysrc.py
+++ b/ansible_collections/community/general/plugins/modules/sysrc.py
@@ -33,28 +33,28 @@ options:
required: true
value:
description:
- - The value to set when I(state=present).
- - The value to add when I(state=value_present).
- - The value to remove when I(state=value_absent).
+ - The value to set when O(state=present).
+ - The value to add when O(state=value_present).
+ - The value to remove when O(state=value_absent).
type: str
state:
description:
- - Use I(present) to add the variable.
- - Use I(absent) to remove the variable.
- - Use I(value_present) to add the value to the existing variable.
- - Use I(value_absent) to remove the value from the existing variable.
+ - Use V(present) to add the variable.
+ - Use V(absent) to remove the variable.
+ - Use V(value_present) to add the value to the existing variable.
+ - Use V(value_absent) to remove the value from the existing variable.
type: str
default: "present"
choices: [ absent, present, value_present, value_absent ]
path:
description:
- - Path to file to use instead of C(/etc/rc.conf).
+ - Path to file to use instead of V(/etc/rc.conf).
type: str
default: "/etc/rc.conf"
delim:
description:
- - Delimiter to be used instead of C( ).
- - Only used when I(state=value_present) or I(state=value_absent).
+ - Delimiter to be used instead of V(" ") (space).
+ - Only used when O(state=value_present) or O(state=value_absent).
default: " "
type: str
jail:
@@ -62,7 +62,7 @@ options:
- Name or ID of the jail to operate on.
type: str
notes:
- - The C(name) cannot contain periods as sysrc does not support OID style names.
+ - The O(name) cannot contain periods as sysrc does not support OID style names.
'''
EXAMPLES = r'''
@@ -222,7 +222,7 @@ def main():
# OID style names are not supported
if not re.match('^[a-zA-Z0-9_]+$', name):
module.fail_json(
- msg="Name may only contain alpha-numeric and underscore characters"
+ msg="Name may only contain alphanumeric and underscore characters"
)
value = module.params.pop('value')