Ansible Setup with Key Based Authentication between ACN and Node
- Overview
- Create two linux vm’s
- Create a user on both vms with password
- Ensure the user has sudo permissions
- Now create an ssh key pair on Ansible control node


- copy the public key from Ansible control node to node


- Try login from ansible control node to node without password

- Install ansible
- Create an inventory with one entry i.e. node private ip

Lets Have fun with some manual activities
Installing apache server and creating an extra html page.
- ubuntu:
- Refer Here for manual steps
- Manual steps
sudo apt update
sudo apt install apache2 -y
Ways of Work in Ansible (First Version)
- In Ansible work organization is as shown below

- We create playbooks in YAML format which is collection of plays.
-
Each Play will have
- where the play has to be executed
- Which user should be executing the work
- List of modules to perform your automation where we describe the desired state
- Ensure you have valid manual steps (which are working)
- For each manual step find out an equivalent module
- Refer Here for YAML and Json Tutorial.
