|
|
@ -128,16 +128,17 @@
|
|
|
|
# readonly homedir
|
|
|
|
# readonly homedir
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Try writing to temp directory for the readonly_homedir user"
|
|
|
|
# TODO: https://github.com/dw/mitogen/issues/692
|
|
|
|
become: true
|
|
|
|
# - name: "Try writing to temp directory for the readonly_homedir user"
|
|
|
|
become_user: mitogen__readonly_homedir
|
|
|
|
# become: true
|
|
|
|
custom_python_run_script:
|
|
|
|
# become_user: mitogen__readonly_homedir
|
|
|
|
script: |
|
|
|
|
# custom_python_run_script:
|
|
|
|
from ansible.module_utils.basic import get_module_path
|
|
|
|
# script: |
|
|
|
|
path = get_module_path() + '/foo.txt'
|
|
|
|
# from ansible.module_utils.basic import get_module_path
|
|
|
|
result['path'] = path
|
|
|
|
# path = get_module_path() + '/foo.txt'
|
|
|
|
open(path, 'w').write("bar")
|
|
|
|
# result['path'] = path
|
|
|
|
register: tmp_path
|
|
|
|
# open(path, 'w').write("bar")
|
|
|
|
|
|
|
|
# register: tmp_path
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# modules get the same base dir
|
|
|
|
# modules get the same base dir
|
|
|
|