diff --git a/lib/ansible/plugins/action/service.py b/lib/ansible/plugins/action/service.py index e6e86e21c8d..dd521e1b672 100644 --- a/lib/ansible/plugins/action/service.py +++ b/lib/ansible/plugins/action/service.py @@ -68,6 +68,7 @@ class ActionModule(ActionBase): # for backwards compatibility if 'state' in new_module_args and new_module_args['state'] == 'running': + self._display.deprecated(msg="state=running is deprecated. Please use state=started", version="2.7") new_module_args['state'] = 'started' if module in self.UNUSED_PARAMS: