jumpserver / helm-charts

Helm charts for JumpServer
GNU General Public License v3.0
36 stars 32 forks source link

Question: How to modify the ansible.cfg file ? šŸ¤” #140

Closed nmella closed 1 year ago

nmella commented 1 year ago

Hi there.

I have deployed Jumpserver release 3.4.1 using default Helm Chart values. When trying to run some shortcut command, I get the following error on some Linux Asset: (screenshot)

STAGE-SSH-Instancia1 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to create temporary directory. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo ~1.ent-mjvc35zcunzn4-staging-5em2ouy/.ansible/tmp `\"&& mkdir \"` echo ~1.ent-mjvc35zcunzn4-staging-5em2ouy/.ansible/tmp/ansible-tmp-1688159955.7952263-6855-273775216127374 `\" && echo ansible-tmp-1688159955.7952263-6855-273775216127374=\"` echo ~1.ent-mjvc35zcunzn4-staging-5em2ouy/.ansible/tmp/ansible-tmp-1688159955.7952263-6855-273775216127374 `\" ), exited with result 1",
    "unreachable": true
}

As the error states, I shoud "Consider changing the remote tmp path in ansible.cfg". Where can I update the "ansible.cfg" file ? I dont know where to edit the ansible.cfg file....

Thanks !

PS: By the way, I try adding the DEFAULT_LOCAL_TMP path value in the Platform section (image) but it did not work.

nmella commented 1 year ago

OK, so I finally get it working using ANSIBLE_LOCAL_TEMP and ANSIBLE_REMOTE_TMP with lowercase.

2023-06-30_17-42