我正在使用ansijet
自动化执行ansible playbook,以便在单击按钮时运行该playbook。该playbook用于停止AWS上正在运行的实例。如果从命令行手动运行,则playbook可以正常运行并执行任务。但是,当通过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
,但是仍然出现相同的错误。