Thank you for the clarification.

On Fri, 12 Nov 2021, 16:37 Vladimir Botka, <[email protected]> wrote:

> On Fri, 12 Nov 2021 15:18:07 +0530
> nitesh shet <[email protected]> wrote:
>
> > 1. If I run a playbook which has a task to run some module, does that
> > module create any temporary file in the remote machine to run the module?
>
> Yes. It does. The default is '$HOME/.ansible/tmp' where $HOME is the
> home directory of *remote_user*. Search *remote_tmp* in FAQ to learn
> more
> https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#
>
> It seems that it's not documented in 'Ansible Configuration Settings'
>
> https://docs.ansible.com/ansible/latest/reference_appendices/config.html#ansible-configuration-settings
>
> Also 'shell> ansible-config dump | grep -i remote_tmp' shows nothing,
> instead of expected default.
>
> > 2. Is it necessary that a remote machine should have a python package
> > installed in it?
>
> Yes. It is. Ansible tries to select a platform's default. See the
> configuration
> 'shell> ansible-config dump | grep -i INTERPRETER_PYTHON'
>
> > 3. If Module creates a temporary file in a remote machine,can anybody
> > specify which location it will create?
>
> You can configure 'remote_tmp', but you have to understand the
> security implications. See 'Risks of becoming an unprivileged user'
>
> https://docs.ansible.com/ansible/latest/user_guide/become.html#risks-of-becoming-an-unprivileged-user
>
> --
> Vladimir Botka
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAPgfy9Vs-bSf-MJ8YDqj_iPxj%3D-g1%2BSx_t-JU3OxmXcSr4QaDQ%40mail.gmail.com.

Reply via email to