Debian Codegraph @

test/integration/targets/module_defaults/action_plugins/debug.py

raw
1 from __future__ import annotations
2
3 from ansible.plugins.action import ActionBase
4
5
6 class ActionModule(ActionBase):
7 def run(self, tmp=None, task_vars=None):
8 result = super().run(tmp, task_vars)
9
10 if self._task.args and 'msg' in self._task.args:
11 msg = self._task.args.get('msg')
12 else:
13 msg = "Hello overridden world!"
14
15 result['changes'] = False
16 result['msg'] = msg
17 return result