安装ansible,


在 Control Machine 上安装 Ansible

Ubuntu (Apt)

  1. 安装 add-apt-repository 必要套件。

    $ sudo apt-get install -y python-software-properties software-properties-common
    
  2. 使用 Ansible 官方的 PPA 套件来源。

    $ sudo add-apt-repository -y ppa:ansible/ansible; sudo apt-get update
    
  3. 安装 Ansible。

    $ sudo apt-get install -y ansible
    
CentOS (Yum)
  1. 新增 epel-release 第三方套件来源。

    $ sudo yum install -y epel-release
    
  2. 安装 Ansible。

    $ sudo yum install -y ansible

在 Managed Node 安装 OpenSSH server 和 Python

  • Ubuntu.

    $ sudo apt-get install -y openssh-server python2.7
    
  • CentOS.

    $ sudo yum install -y openssh-server python

相关内容

    暂无相关文章