How to install Ansible
https://www.snel.com/support/how-to-install-ansible-on-centos-7/
Install Ansible on Ubuntu
Install Ansible on Centos
For Gentoo Linux users, installing Ansible can be accomplished fairly easily. The following command-line syntax can be leveraged to accomplish the installation:
PKG for FreeBSD
FreeBSD-specific users can use pkg install to install the Ansible control server solution and get Ansible up-and-running quickly:
Pip for macOS
The preferred way to install Ansible for macOS is to use Python's pip installation solution. An example of how to do this is provided next.
If needed, you can install pip via the following command:
Once pip is installed, you can install Ansible with the following command:
Via Python pip
Prior to installing Ansible using pip we may need to actually install pip. To accomplish this on the command line, the following command can be used:
Then install Ansible with the following command:
Once Ansible has been installed
Once Ansible is installed on the desired Linux machine, we will want to verify that it is properly installed and functioning. To do this from the command line, enter the following command:
Upon successful execution of these commands, Ansible should output version information and related help information respectively.
In this brief tutorial we will assume the SSH key authentication solution is being used. It helps us avoid having to enter or store raw passwords:
Now ping all the nodes (assumes you have an inventory file created):
Comments
Post a Comment