Ansible is a simple open-source automation tool that can automate cloud deployment, application deployment or Linux OS maintenance. Comparing Ansible to other automation tools (i.e. Puppet), it’s the simplest tool, because it’s agentless. Ansible once installed on a control node, connects to a managed node via SSH, which doesn’t require any client applications installed on that node.
Installation of Ansible on Fedora based control node is pretty simple and straightforward, since it can be installed from RPM packages. In this tutorial we are installing Ansible on Fedora 23 via dnf package manager.
1. Locate Ansible package
RPM based Linux distributions (like RHEL, CentOS, Scientific Linux) usually require EPEL repository to install Ansible. Fedora 23 provides Ansible by default via updates repository:
[root@tuxfixer ~]# dnf info ansible Last metadata expiration check: 0:34:33 ago on Sun Dec 11 12:27:40 2016. Available Packages Name : ansible Arch : noarch Epoch : 0 Version : 220.127.116.11 Release : 3.fc23 Size : 4.6 M Repo : updates Summary : SSH-based configuration management, deployment, and task execution system URL : http://ansible.com License : GPLv3+ Description : : Ansible is a radically simple model-driven configuration management, : multi-node deployment, and remote task execution system. Ansible works : over SSH and does not require any software or daemons to be installed : on remote nodes. Extension modules can be written in any language and : are transferred to managed machines automatically.
2. Install Ansible using DNF
Install the package:
[root@tuxfixer ~]# dnf install ansible
3. Verify Ansible installation
Verify installed Ansible version:
[root@tuxfixer ~]# ansible --version ansible 18.104.22.168 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides