安装ansible至全环境, 非user

安装Ansible至指定用户并覆盖其它用户环境


  1. 官方文档
    https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#locating-python
  2. 安装pip
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    python3 get-pip.py
  3. 安装ansible
    sudo python3 -m pip install ansible

     

posted @ 2025-05-23 00:54  MacoPlus  阅读(12)  评论(0)    收藏  举报