小编bub*_*000的帖子

Ansible playbook 在所有 Ubuntu 服务器上都失败

我在 CentOS 服务器上运行 Ansible,并且可以在 Windows 和 RHEL/CentOS Linux 服务器上成功运行 playbook,但令我震惊的是我无法让 playbook 在任何 Ubuntu 服务器(v14.04、v16.04 或 v18.04)上运行- 包括 AWS 托管实例)!

奇怪的是Anible hostname -m ping 命令在所有 Ubuntu 主机上都可以正常工作......

我尝试将 CentOS 和 OpenSSH 更新到最新版本,但没有成功。我正试图解决这个问题,所以我希望有人能帮助我......

我的 Ansible 设置如下:

[root@ansible ansible]# ansible --version
ansible 2.9.3
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Aug  7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Run Code Online (Sandbox Code Playgroud)

CentOS版本:

[root@ansible …
Run Code Online (Sandbox Code Playgroud)

python ubuntu openssh ansible

4
推荐指数
1
解决办法
5456
查看次数

标签 统计

ansible ×1

openssh ×1

python ×1

ubuntu ×1