|
|
@ -94,8 +94,7 @@
|
|
|
|
from ansible.module_utils.basic import get_module_path
|
|
|
|
from ansible.module_utils.basic import get_module_path
|
|
|
|
path = get_module_path() + '/foo.txt'
|
|
|
|
path = get_module_path() + '/foo.txt'
|
|
|
|
result['path'] = path
|
|
|
|
result['path'] = path
|
|
|
|
with open(path, 'w') as f:
|
|
|
|
open(path, 'w').write("bar")
|
|
|
|
f.write("bar")
|
|
|
|
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Verify junk disappeared."
|
|
|
|
- name: "Verify junk disappeared."
|
|
|
@ -137,8 +136,7 @@
|
|
|
|
from ansible.module_utils.basic import get_module_path
|
|
|
|
from ansible.module_utils.basic import get_module_path
|
|
|
|
path = get_module_path() + '/foo.txt'
|
|
|
|
path = get_module_path() + '/foo.txt'
|
|
|
|
result['path'] = path
|
|
|
|
result['path'] = path
|
|
|
|
with open(path, 'w') as f:
|
|
|
|
open(path, 'w').write("bar")
|
|
|
|
f.write("bar")
|
|
|
|
|
|
|
|
register: tmp_path
|
|
|
|
register: tmp_path
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|