【发布时间】:2016-02-03 12:03:02
【问题描述】:
我正在使用 ansijet 来自动化 ansible playbook,以便在单击按钮时运行。该剧本是停止 AWS 上正在运行的实例。如果从命令行手动运行,则剧本运行良好并完成任务。但是通过ansijet的web界面运行时,遇到如下错误
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:
以下是ansible.cfg 配置。
# some basic default values...
inventory = /etc/ansible/hosts
#library = /usr/share/my_modules/
remote_tmp = $HOME/.ansible/tmp/
pattern = *
forks = 5
poll_interval = 15
sudo_user = root
#ask_sudo_pass = True
#ask_pass = True
transport = smart
#remote_port = 22
module_lang = C
我尝试将remote_tmp 路径更改为/home/ubuntu/.ansible/tmp
但仍然得到同样的错误。
【问题讨论】:
标签: amazon-web-services ansible ansible-playbook