上QQ阅读APP看书,第一时间看更新
Installing via pip
You can install Ansible via pip. If you don't have pip installed on your system, install it. You can use pip to install Ansible on Windows too, using the following command line:
$ sudo easy_install pip
You can now install Ansible using pip, as follows:
$ sudo pip install ansible
Once you're done installing Ansible, run ansible --version to verify that it has been installed:
$ ansible --version
You will get many lines as output from the preceding command line, as follows:
ansible 2.7.1
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/fale/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.15 (default, Oct 15 2018, 15:24:06) [GCC 8.1.1 20180712 (Red Hat 8.1.1-5)]