Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make service_facts return value documentation visible #47701

Merged
merged 1 commit into from
Nov 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 21 additions & 13 deletions lib/ansible/modules/system/service_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,30 @@

RETURN = '''
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
type: complex
contains:
"services": {
"network": {
"source": "sysv",
"state": "running",
"name": "network"
},
arp-ethers.service: {
"source": "systemd",
"state": "stopped",
"name": "arp-ethers.service"
}
}
services:
description: States of the services with service name as key.
returned: always
type: complex
contains:
source:
description: Init system of the service. One of C(systemd), C(sysv), C(upstart).
returned: always
type: string
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
'''


Expand Down