ansible2.7 python3.7

2023-01-31 01:01:45 python3 ansible2
  1. ./configure --prefix=/ansible/python
  2. make
  3. make install
    报错: ModuleNotFoundError: No module named '_ctypes'
    解决方法:
    下载安装:libffi-devel-3.0.5-3.2.el6.x86_64.rpm
    重新编译安装Python
  4. python3建立软连接: ln python3 python
  5. shell中指定环境变量PATH

https://releases.ansible.com/ansible/

  1. 安装依赖包
  2. python setup.py inslall
    Https://releases.ansible.com/ansible/rpm/
  3. 安装依赖包: python-jinja/sshpass
  4. 安装ansible
  1. client: ssh-keygen -t rsa
  2. client: ssh-copy-id <user>@<server_ip>

相关文章