Installing Ansible on Ubuntu
Open terminal
1. sudo apt-get install software-properties-common
2. sudo apt-add-repository ppa:ansible/ansible
3. sudo apt-get update
4. sudo apt install ansible
Go to /home/ubuntu
5. gedit .bashrc
6. add export LC_ALL= C in the .bashrc file
7. go back to the terminal and run: source .bashrc
Now Create your ansible playbook using following command:
gedit test.yml
Run your ansible playbook using following command:
ansible-playbook test.yml
4. sudo apt install ansible
Go to /home/ubuntu
5. gedit .bashrc
6. add export LC_ALL= C in the .bashrc file
7. go back to the terminal and run: source .bashrc
Go to /etc/ansible
8. sudo apt-get install python-pip
9. pip install -U boto
10. 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
Comments
Post a Comment