Installing Ansible from source
Installing Ansible from source is the best way to make sure that you have all the latest features and bug fixes. Fortunately, it’s nice and easy to do too.
First, make sure you have any dependencies installed:
Next, download the code:
Then we want to install it:
Now, Ansible should be installed
First, make sure you have any dependencies installed:
sudo yum install python-2.7 gcc-c++ python-setuptools python-devel python-yaml python-paramiko python-jinja2 python-httplib2
Next, download the code:
wget http://releases.ansible.com/ansible/ansible-latest.tar.gz
Then we want to install it:
cd ansible-
latest
&& make && sudo make install
Now, Ansible should be installed
which ansible
=> /usr/local/bin/ansible
[root@localhost ansible-1.9.2]# ansible --version
ansible 1.9.2
Test command:# echo "127.0.0.1" > /tmp/ansible_hosts
# ansible all -m ping --ask-pass -i /tmp/ansible_hosts
Are you sure you want to continue connecting (yes/no)? yes 127.0.0.1 | success >> { "changed": false, "ping": "pong" }
Install Pip:
# sudo easy_install pip
Nhận xét
Đăng nhận xét