1

我在这里发现了类似的情况,我正在使用分子来测试我的 ansible 角色,但由于某种原因,它跳过了“创建”部分并给出了如下错误:

fatal: [rabbitmq]: 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 ~/.ansible/tmp `\"&& mkdir \"` echo ~/.ansible/tmp/ansible-tmp-1638541586.6239848-828-250053975102429 `\" && echo ansible-tmp-1638541586.6239848-828-250053975102429=\"` echo ~/.ansible/tmp/ansible-tmp-1638541586.6239848-828-250053975102429 `\" ), exited with result 1", "unreachable": true}

它正在跳过创建过程:跳过,已创建实例。但是,什么都没有运行:

name@EEW00438:~/.cache$ docker ps -a
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
name@EEW00438:~/.cache$

我尝试了什么:

  • molecule destroy
  • molecule reset
  • 重新开始
  • rm -rf ~/.cache/
  • 改为在remote_tmp_/tmp/.ansible//etc/ansible/ansible.cfg
  • 重新安装分子

这个问题只有一个角色。

更新:它在步骤失败:

mkdir \"` echo ~/.ansible/tmp/ansible-tmp-1638782939.31706-2913-12516475286623 `\" && echo ansible-tmp-1638782939.31706-2913-12516475286623=

mkdir: cannot create directory ‘"/home/user/.ansible/tmp/ansible-tmp-1638782939.31706-2913-12516475286623"’: No such file or directory
4

0 回答 0