|
|
@ -443,30 +443,30 @@ In summary, for each task Ansible may create one or more of:
|
|
|
|
* ``$TMPDIR/ansible_<modname>_payload_.../`` owned by the become user,
|
|
|
|
* ``$TMPDIR/ansible_<modname>_payload_.../`` owned by the become user,
|
|
|
|
* ``$TMPDIR/ansible-module-tmp-.../`` owned by the become user.
|
|
|
|
* ``$TMPDIR/ansible-module-tmp-.../`` owned by the become user.
|
|
|
|
|
|
|
|
|
|
|
|
A directory must be created in order to maintain compatibility with Ansible,
|
|
|
|
A directory must exist to maintain compatibility with Ansible, as many modules
|
|
|
|
as many modules introspect :data:`sys.argv` in order to find a directory where
|
|
|
|
introspect :data:`sys.argv` to find a directory where they may write files,
|
|
|
|
they may write files, however for only one such directory exists for the
|
|
|
|
however only one directory exists for the lifetime of each interpreter, its
|
|
|
|
lifetime of each interpreter, its location is consistent for each target
|
|
|
|
location is consistent for each target account, and it is always privately
|
|
|
|
account, and it is always privately owned by that account.
|
|
|
|
owned by that account.
|
|
|
|
|
|
|
|
|
|
|
|
The following candidate paths are tried until one is found that is writeable
|
|
|
|
The paths below are tried until one is found that is writeable and appears live
|
|
|
|
and appears live on a filesystem that does not have ``noexec`` enabled:
|
|
|
|
on a filesystem with ``noexec`` disabled:
|
|
|
|
|
|
|
|
|
|
|
|
1. The ``$variable`` and tilde-expanded ``remote_tmp`` setting from
|
|
|
|
1. ``$variable`` and tilde-expanded ``remote_tmp`` setting from
|
|
|
|
``ansible.cfg``.
|
|
|
|
``ansible.cfg``
|
|
|
|
2. The ``$variable`` and tilde-expanded ``system_tmpdirs`` setting from
|
|
|
|
2. ``$variable`` and tilde-expanded ``system_tmpdirs`` setting from
|
|
|
|
``ansible.cfg``.
|
|
|
|
``ansible.cfg``
|
|
|
|
3. The ``TMPDIR`` environment variable.
|
|
|
|
3. ``TMPDIR`` environment variable
|
|
|
|
4. The ``TEMP`` environment variable.
|
|
|
|
4. ``TEMP`` environment variable
|
|
|
|
5. The ``TMP`` environment variable.
|
|
|
|
5. ``TMP`` environment variable
|
|
|
|
6. ``/tmp``
|
|
|
|
6. ``/tmp``
|
|
|
|
7. ``/var/tmp``
|
|
|
|
7. ``/var/tmp``
|
|
|
|
8. ``/usr/tmp``
|
|
|
|
8. ``/usr/tmp``
|
|
|
|
9. The current working directory.
|
|
|
|
9. Current working directory
|
|
|
|
|
|
|
|
|
|
|
|
As the directory is created once at startup, and its content is managed by code
|
|
|
|
As the directory is created once at startup, and its content is managed by code
|
|
|
|
running remotely, no additional network roundtrips are required to create and
|
|
|
|
running remotely, no additional network roundtrips are required to manage it
|
|
|
|
destroy it for each task requiring temporary storage.
|
|
|
|
for each task requiring temporary storage.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. _ansible_process_env:
|
|
|
|
.. _ansible_process_env:
|
|
|
|