sudo yum install epel-release -y
sudo yum install ansible -y
- Day1
- Basic inventory file
- Check connectivity using ping.yml playbook
- Install Nginx and use of handler
- Day2
- Jinja Templates
- Update the html file in default nginx folder path
- Loops
- Until
- loop
- loop retry
- loop control
- Conditions in playbook
- Install packages based on OS type
- Multiple condition in when statement
- Error Handling
- Purposefully ignore the errors
- Purposefully fail the task based on condtion
- Jinja Templates
ansible-playbook -i environments/internal_env/ ping.yml
ansible-playbook -i environments/internal_env/ loops.yml -e "user1=test user2=abcd"