mirror of https://github.com/ansible/ansible.git
fix missing attribs with dirct module execution (#53875)
* fix missing attribs with dirct module execution * also make remote tmp handling smarter update tests * set default if attrib does not exist * add simple testpull/54864/head
parent
c6ed5b314d
commit
bda541fa0d
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- ensure we always have internal module attributes set, even if not being passed (fixes using modules as script)
|
@ -0,0 +1 @@
|
||||
shippable/posix/group3
|
@ -0,0 +1 @@
|
||||
{ "ANSIBLE_MODULE_ARGS": {} }
|
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
module = AnsibleModule(argument_spec=dict())
|
||||
|
||||
module.exit_json(**{'tempdir': module._remote_tmp})
|
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
# test running module directly
|
||||
python.py library/test.py args.json
|
Loading…
Reference in New Issue