You may refer installation doc from official document as well.
Controlnode is just the machine where we install the Ansible program and will contain copies of your project file including ansible playbooks. It can be a workstation, a virtual machine or a dedicated server in the environment.
Linux/Unix systems only (Windows not currently supported) Software
These are listed servers or nodes in the inventory – defined as static or via dynamic inventory scripts – on which Ansible commands or playbook tasks need to be executed.
Check installed python version
yum list installed python
yum install -y ansible
Test installed version
[devops@ansible-box dep-install]$ ansible --version
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
Ansible can be installed via “pip”, the Python package manager. If ‘pip’ isn’t already available in your version of Python, you can get pip by:
$ sudo easy_install pip
Then install Ansible with
$ sudo pip install ansible
$ sudo apt-get install ansible
If CentOS, configure EPEL repo (Extra Packages for Enterprise Linux)
sudo yum -y install epel-release
Want to know more about Ansible ? Read next part on Deploying Ansible
See all parts of Automation with Ansible Guides here
The views expressed and the content shared in all published articles on this website are solely those of the respective authors, and they do not necessarily reflect the views of the author’s employer or the techbeatly platform. We strive to ensure the accuracy and validity of the content published on our website. However, we cannot guarantee the absolute correctness or completeness of the information provided. It is the responsibility of the readers and users of this website to verify the accuracy and appropriateness of any information or opinions expressed within the articles. If you come across any content that you believe to be incorrect or invalid, please contact us immediately so that we can address the issue promptly.