Open terminal
- sudo apt-get install software-properties-common
- sudo apt-add-repository ppa:ansible/ansible
- sudo apt-get update
- sudo apt install ansible
Go to /home/ubuntu
- gedit .bashrc
- add export LC_ALL= C in the .bashrc file
- go back to the terminal and run: source .bashrc
Go to /etc/ansible
- sudo apt-get install python-pip
- pip install -U boto
- pip install boto3
Now Create your ansible playbook using following command:
gedit test.yml
Run your ansible playbook using following command:
ansible-playbook test.yml