Skip to content

Instantly share code, notes, and snippets.

@swarupdonepudi
Last active February 28, 2017 03:21
Show Gist options
  • Save swarupdonepudi/868d993c103a85e99c31a64e33de72f5 to your computer and use it in GitHub Desktop.
Save swarupdonepudi/868d993c103a85e99c31a64e33de72f5 to your computer and use it in GitHub Desktop.
Installation & hosts configuration instructions for Ansible on CentOS

#Install Ansible

  1. To get Ansible for CentOS 7, first ensure that the CentOS 7 EPEL repository is installed
sudo yum install epel-release
  1. Once the repository is installed, install Ansible with yum:
sudo yum install ansible

We now have all of the software required to administer our servers through Ansible.

#Configure Ansible Hosts

  1. Create a file with name hosts in your ansible workspace directory
vi hosts

Sample hosts file contents look like this

192.168.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment