Ansible Contd..
- Ansible Control Node requirements:
- OS:
- Linux flavours => RedHat, Ubuntu, CentOS, any of BSD’s
- Mac
- Software:
- Python 2
- Python 3
- OS:
- Lets create a ubuntu 18 VM as node
- Ansible Node requirements
- SSH should be running

- Python should be installed
- SFTP/SCP should be configured
- SSH should be running
- Now lets try to verify the connectivity using ansible b/w control node and node
- First lets create a simple inventory
172.31.7.136
# echo "172.31.7.136" > inventory

- Now ensure you have private key (pem) file in the Ansible control node and permissions are set

- Lets look at a simple ansible ping command which verifies if your control node can access nodes or not
ansible -i <inventory> -m ping all
- We also need to specify the username and pem file (private key file)

- So now lets add a new centos 7 VM

How to make ansible work towards our deployments
- Pictorial Representation

- In Ansible the atomic unit of work is module. Ansible has lot of inbuilt modules to help us automate our infra needs
- Refer Here for the list of all the modules supported by ansible
- Our approach to use Ansible
- Make a list of all the steps needed to deploy your application
- for every step try to find the ansible module which can help in expressing a desired state.
Exercise
- Learn about YAML Refer Here
