一、Installation Guide
On Fedora: $ sudo dnf install ansible On RHEL and CentOS: $ sudo yum install ansible On RHEL 7: To enable the Ansible Engine repository, run the following command: $ sudo subscription-manager repos --enable rhel-7-server-ansible-2.6-rpms $ sudo yum install ansible On Ubuntu: $ sudo apt-get update $ sudo apt-get install software-properties-common $ sudo apt-add-repository --yes --update ppa:ansible/ansible $ sudo apt-get install ansible On Debian: Add the following line to /etc/apt/sources.list: deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 $ sudo apt-get update $ sudo apt-get install ansible On Gento: $ emerge -av app-admin/ansible On FreeBSD: $ sudo pkg install py27-ansible or: $ sudo pkg install py36-ansible On macOS: $ sudo easy_install pip $ sudo pip install ansible On Arch: $ pacman -S ansible
二、Configuring Ansible