mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 14:01:42 -07:00
Make service_facts return value documentation visible (#47701)
This commit is contained in:
parent
ee7bbe1044
commit
276634c808
1 changed files with 21 additions and 13 deletions
|
@ -47,22 +47,30 @@ EXAMPLES = '''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
ansible_facts:
|
ansible_facts:
|
||||||
description: facts to add to ansible_facts about the services on the system
|
description: Facts to add to ansible_facts about the services on the system
|
||||||
returned: always
|
returned: always
|
||||||
type: complex
|
type: complex
|
||||||
contains:
|
contains:
|
||||||
"services": {
|
services:
|
||||||
"network": {
|
description: States of the services with service name as key.
|
||||||
"source": "sysv",
|
returned: always
|
||||||
"state": "running",
|
type: complex
|
||||||
"name": "network"
|
contains:
|
||||||
},
|
source:
|
||||||
arp-ethers.service: {
|
description: Init system of the service. One of C(systemd), C(sysv), C(upstart).
|
||||||
"source": "systemd",
|
returned: always
|
||||||
"state": "stopped",
|
type: string
|
||||||
"name": "arp-ethers.service"
|
sample: sysv
|
||||||
}
|
state:
|
||||||
}
|
description: State of the service. Either C(running) or C(stopped).
|
||||||
|
returned: always
|
||||||
|
type: string
|
||||||
|
sample: running
|
||||||
|
name:
|
||||||
|
description: Name of the service.
|
||||||
|
returned: always
|
||||||
|
type: string
|
||||||
|
sample: arp-ethers.service
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue