mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Add some header documentation for the service scanning module
This commit is contained in:
@@ -3,6 +3,46 @@
|
|||||||
import re
|
import re
|
||||||
from ansible.module_utils.basic import * # noqa
|
from ansible.module_utils.basic import * # noqa
|
||||||
|
|
||||||
|
DOCUMENTATION = '''
|
||||||
|
---
|
||||||
|
module: scan_services
|
||||||
|
short_description: Return service state information as fact data
|
||||||
|
description:
|
||||||
|
- Return service state information as fact data for various service management utilities
|
||||||
|
version_added: "1.9"
|
||||||
|
options:
|
||||||
|
requirements: [ ]
|
||||||
|
author: Matthew Jones
|
||||||
|
'''
|
||||||
|
|
||||||
|
EXAMPLES = '''
|
||||||
|
- monit: scan_services
|
||||||
|
# Example fact output:
|
||||||
|
# host | success >> {
|
||||||
|
# "ansible_facts": {
|
||||||
|
# "services": [
|
||||||
|
# {
|
||||||
|
# "name": "acpid",
|
||||||
|
# "source": "sysv",
|
||||||
|
# "state": "running"
|
||||||
|
# },
|
||||||
|
# {
|
||||||
|
# "name": "apparmor",
|
||||||
|
# "source": "sysv",
|
||||||
|
# "state": "stopped"
|
||||||
|
# },
|
||||||
|
# {
|
||||||
|
# "name": "atd",
|
||||||
|
# "source": "sysv",
|
||||||
|
# "state": "running"
|
||||||
|
# },
|
||||||
|
# {
|
||||||
|
# "name": "cron",
|
||||||
|
# "source": "sysv",
|
||||||
|
# "state": "running"
|
||||||
|
# }, .... ] } }
|
||||||
|
'''
|
||||||
|
|
||||||
class BaseService(object):
|
class BaseService(object):
|
||||||
|
|
||||||
def __init__(self, module):
|
def __init__(self, module):
|
||||||
|
|||||||
Reference in New Issue
Block a user