相关疑难解决方法(0)

身份验证或权限失败,对远程目录没有权限

我正在使用ansijet自动化ansible playbook按钮点击运行.该手册将停止AWS上正在运行的实例.如果从命令行手动运行,则playbook运行良好并执行任务.但是当通过Web界面运行时ansijet,遇到以下错误

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". Failed command was: mkdir -p $HOME/.ansible/tmp/ansible-tmp-1390414200.76-192986604554742 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1390414200.76-192986604554742 && echo $HOME/.ansible/tmp/ansible-tmp-1390414200.76-192986604554742, exited with result 1:
Run Code Online (Sandbox Code Playgroud)

以下是ansible.cfg配置.

# some basic default values...

inventory      = /etc/ansible/hosts
#library        = /usr/share/my_modules/
remote_tmp     = $HOME/.ansible/tmp/
pattern        = * …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services ansible ansible-playbook

9
推荐指数
1
解决办法
5714
查看次数