mirror of https://github.com/ansible/ansible.git
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.
15 lines
462 B
Python
15 lines
462 B
Python
4 years ago
|
# Make coding more python3-ish
|
||
|
from __future__ import (absolute_import, division, print_function)
|
||
|
__metaclass__ = type
|
||
|
|
||
|
from ansible.plugins.action import ActionBase
|
||
|
|
||
|
|
||
|
class ActionModule(ActionBase):
|
||
|
|
||
|
def run(self, tmp=None, task_vars=None):
|
||
|
result = super(ActionModule, self).run(tmp, task_vars)
|
||
|
result.update(self._execute_module('ping', task_vars=task_vars))
|
||
|
result['tmpdir'] = self._connection._shell.tmpdir
|
||
|
return result
|