[PR #9280/afa5716e backport][stable-9] yum_versionlock: adjust docs (#9302)
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>
pull/9304/head
parent
f9ee387f68
commit
3f5445274c
|
@ -8,8 +8,7 @@
|
|||
from __future__ import absolute_import, division, print_function
|
||||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = r'''
|
||||
---
|
||||
DOCUMENTATION = r"""
|
||||
module: yum_versionlock
|
||||
version_added: 2.0.0
|
||||
short_description: Locks / unlocks a installed package(s) from being updated by yum package manager
|
||||
|
@ -45,9 +44,9 @@ requirements:
|
|||
author:
|
||||
- Florian Paul Azim Hoberg (@gyptazy)
|
||||
- Amin Vakil (@aminvakil)
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = r'''
|
||||
EXAMPLES = r"""
|
||||
- name: Prevent Apache / httpd from being updated
|
||||
community.general.yum_versionlock:
|
||||
state: present
|
||||
|
@ -73,9 +72,9 @@ EXAMPLES = r'''
|
|||
community.general.yum_versionlock:
|
||||
state: absent
|
||||
name: httpd
|
||||
'''
|
||||
"""
|
||||
|
||||
RETURN = r'''
|
||||
RETURN = r"""
|
||||
packages:
|
||||
description: A list of package(s) in versionlock list.
|
||||
returned: success
|
||||
|
@ -87,7 +86,7 @@ state:
|
|||
returned: success
|
||||
type: str
|
||||
sample: present
|
||||
'''
|
||||
"""
|
||||
|
||||
import re
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
|
Loading…
Reference in New Issue