|
|
@ -38,13 +38,15 @@ options:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
choices: [ "present", "started", "stopped", "restarted" ]
|
|
|
|
choices: [ "present", "started", "stopped", "restarted" ]
|
|
|
|
examples:
|
|
|
|
|
|
|
|
- code: "supervisorctl: name=my_app state=started"
|
|
|
|
|
|
|
|
description: Manage the state of program I(my_app) to be in I(started) state.
|
|
|
|
|
|
|
|
requirements: [ ]
|
|
|
|
requirements: [ ]
|
|
|
|
author: Matt Wright
|
|
|
|
author: Matt Wright
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
|
|
|
|
# Manage the state of program to be in 'started' state.
|
|
|
|
|
|
|
|
supervisorctl: name=my_app state=started
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
arg_spec = dict(
|
|
|
|
arg_spec = dict(
|
|
|
|
name=dict(required=True),
|
|
|
|
name=dict(required=True),
|
|
|
|