Re: [ansible-project] Re: Can I modify Ansible 'remote_tmp' on a per task basis?

2022-01-19 Thread jbor...@gmail.com
You can, just need to set the var to ansible_remote_tmp, see the var entry for it https://docs.ansible.com/ansible/latest/collections/ansible/builtin/sh_shell.html#parameter-remote_tmp. On Wednesday, January 19, 2022 at 3:26:51 AM UTC+10 chris.mcd...@sbcglobal.net wrote: > Roberto, > > Sorry,

Re: [ansible-project] Re: Can I modify Ansible 'remote_tmp' on a per task basis?

2022-01-18 Thread Christopher McDaniel
Roberto, Sorry, I think worded this question wrong.Ansible's 'remote_tmp' directory that can be modified in the 'ansible.cfg'is what I need to be able to modify on a per task basispreferable within the task file. I know it can be set per host in the host file with Ansible versions >=2.4.Ri

[ansible-project] Re: Can I modify Ansible 'remote_tmp' on a per task basis?

2022-01-18 Thread Roberto Paz
If you are using a variable like "my_temp_dir", then you can overwrite it before each task using something like: - set_fact: my_temp_dir: "new_value" as a separated task. However, if the variable is provided at runtime as an extra var, some additional considerations should be done regardin