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.
Linux
Windows
Check installed python version
yum list installed python
Install Ansible
yum install -y ansible
Test installed version
[[email protected] dep-install]$ ansible --version
ansible 2.3.1.0
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)]
Other Methods
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
PPA Repo
$ 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
Disclaimer: The views expressed and the content shared are those of the author and do not reflect the views of the author’s employer or techbeatly platform.
Tags: Ansible · Ansible Doc · Automation
Gineesh Madapparambath
Gineesh Madapparambath is the founder of techbeatly and he is the author of the book - 𝗔𝗻𝘀𝗶𝗯𝗹𝗲 𝗳𝗼𝗿 𝗥𝗲𝗮𝗹-𝗟𝗶𝗳𝗲 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗶𝗼𝗻.
He has worked as a Systems Engineer, Automation Specialist, and content author. His primary focus is on Ansible Automation, Containerisation (OpenShift & Kubernetes), and Infrastructure as Code (Terraform).
(aka Gini Gangadharan - iamgini.com)
This site uses Akismet to reduce spam. Learn how your comment data is processed.4 Responses
Leave a Reply Cancel reply
[…] we all know Ansible installation is coming with default modules and you don’t need to download or configure any additional […]
[…] Kubespray is fully relying on Ansible, you need a Linux based machine (Red Hat, Debian, CentOS, macOS, any of the BSDs, and so on) for […]
[…] Read: Installing Ansible […]
[…] Read: Installing Ansible […]