我使用Ansible自動執行某些網絡故障排除任務,但是當我嘗試ping我的所有設備作爲一個全面的檢查,我得到了以下錯誤:當我只有只讀訪問權時,如何使用Ansible?
"msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in \"/tmp\".
當我運行在Ansible詳細模式下命令吧這個錯誤之前,我得到以下輸出:
<10.25.100.1> EXEC /bin/sh -c '(umask 77 && mkdir -p "
echo Cmd exec error./.ansible/tmp/ansible-tmp-1500330345.12-194265391907358
" && echo ansible-tmp-1500330345.12-194265391907358="echo Cmd exec error./.ansible/tmp/ansible-tmp-1500330345.12-194265391907358
") && sleep 0'
我是一個實習生,因此只具有隻讀訪問所有設備;因此,我認爲錯誤是由於mkdir命令而發生的。我的兩個問題是這樣的:
1)有沒有辦法將Ansible配置爲不在設備上創建任何臨時文件?
2)是否還有其他因素可能導致我錯過了這個錯誤?
我已經嘗試通過Ansible文檔搜索任何相關的配置,但是我沒有太多與Ansible合作的經驗,所以我一直無法找到任何東西。