mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 14:01:42 -07:00
Allow service 'enable' parameter be 'enabled', which is what I'd personally try to use.
This commit is contained in:
parent
089c75016f
commit
eb41bfd3c8
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ if name is None:
|
||||||
|
|
||||||
state = params.get('state', None)
|
state = params.get('state', None)
|
||||||
list_items = params.get('list', None)
|
list_items = params.get('list', None)
|
||||||
enable = params.get('enable', None)
|
enable = params.get('enabled', params.get('enable', None))
|
||||||
|
|
||||||
# running and started are the same
|
# running and started are the same
|
||||||
if state and state.lower() not in [ 'running', 'started', 'stopped', 'restarted' ]:
|
if state and state.lower() not in [ 'running', 'started', 'stopped', 'restarted' ]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue