You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/module_defaults/action_plugins/debug.py

18 lines
452 B
Python

from __future__ import annotations
from ansible.plugins.action import ActionBase
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
result = super().run(tmp, task_vars)
if self._task.args and 'msg' in self._task.args:
msg = self._task.args.get('msg')
else:
msg = "Hello overridden world!"
result['changes'] = False
result['msg'] = msg
return result