mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-28 03:49:09 -07:00
service now passes 'started' instead of 'running'
other modules don't have to implement this directly also updated docs to prefer 'started'. fixes #16145
This commit is contained in:
parent
1b3d6df985
commit
6f36909074
4 changed files with 8 additions and 4 deletions
|
@ -55,6 +55,10 @@ class ActionModule(ActionBase):
|
|||
if 'use' in new_module_args:
|
||||
del new_module_args['use']
|
||||
|
||||
# for backwards compatibility
|
||||
if new_module_args['state'] == 'running':
|
||||
new_module_args['state'] = 'started'
|
||||
|
||||
self._display.vvvv("Running %s" % module)
|
||||
result.update(self._execute_module(module_name=module, module_args=new_module_args, task_vars=task_vars))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue