zoukankan      html  css  js  c++  java
  • ansible执行命令或playbook报错原因及解决方法整理

    总结一些ansible执行出现的错误及解决办法

    报错一:Authentication or permission failure

    10.86.78.142 | UNREACHABLE! => {
        "changed": false, 
        "msg": "Authentication or permission failure. 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". Failed command was: ( umask 77 && mkdir -p "` echo /geelyapp/ansible-tmp-1586249485.61-166743860327847 `" && echo ansible-tmp-1586249485.61-166743860327847="` echo /geelyapp/ansible-tmp-1586249485.61-166743860327847 `" ), exited with result 1", 
        "unreachable": true
    }

    原因1:

    被登录主机上的用户的密码不对了或密码过期;修改下对应用户的密码为正确密码即可;

    原因2:

    被登录主机上面磁盘空间满了,是不是有点坑?估计这个问题可能坑了很多人吧。。。

    报错二:

  • 相关阅读:
    lua中for循环
    调试经验
    vim中如何替换
    ~=
    size函数
    ubuntu截屏
    linux下报错处理经验
    error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
    《JavaScript》——DOM
    iOS_截屏并裁剪
  • 原文地址:https://www.cnblogs.com/miaocbin/p/12654651.html
Copyright © 2011-2022 走看看