mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-17 05:42:38 -07:00
[PR #9280/afa5716e backport][stable-10] yum_versionlock: adjust docs (#9303)
yum_versionlock: adjust docs (#9280)
* yum_versionlock: adjust docs
* fix examples indentation
(cherry picked from commit afa5716e0b
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
5c2e9e0c5b
commit
a56cec8582
1 changed files with 29 additions and 30 deletions
|
@ -8,8 +8,7 @@
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
DOCUMENTATION = r'''
|
DOCUMENTATION = r"""
|
||||||
---
|
|
||||||
module: yum_versionlock
|
module: yum_versionlock
|
||||||
version_added: 2.0.0
|
version_added: 2.0.0
|
||||||
short_description: Locks / unlocks a installed package(s) from being updated by yum package manager
|
short_description: Locks / unlocks a installed package(s) from being updated by yum package manager
|
||||||
|
@ -45,9 +44,9 @@ requirements:
|
||||||
author:
|
author:
|
||||||
- Florian Paul Azim Hoberg (@gyptazy)
|
- Florian Paul Azim Hoberg (@gyptazy)
|
||||||
- Amin Vakil (@aminvakil)
|
- Amin Vakil (@aminvakil)
|
||||||
'''
|
"""
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r"""
|
||||||
- name: Prevent Apache / httpd from being updated
|
- name: Prevent Apache / httpd from being updated
|
||||||
community.general.yum_versionlock:
|
community.general.yum_versionlock:
|
||||||
state: present
|
state: present
|
||||||
|
@ -73,9 +72,9 @@ EXAMPLES = r'''
|
||||||
community.general.yum_versionlock:
|
community.general.yum_versionlock:
|
||||||
state: absent
|
state: absent
|
||||||
name: httpd
|
name: httpd
|
||||||
'''
|
"""
|
||||||
|
|
||||||
RETURN = r'''
|
RETURN = r"""
|
||||||
packages:
|
packages:
|
||||||
description: A list of package(s) in versionlock list.
|
description: A list of package(s) in versionlock list.
|
||||||
returned: success
|
returned: success
|
||||||
|
@ -87,7 +86,7 @@ state:
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
sample: present
|
sample: present
|
||||||
'''
|
"""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue