Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Ansible Inventory Lab & Excercise – Part 3

Assignment 1

You have been given a RHEL 7.X instance for ARS where access is enabled with ec2-user and key. Password login is disabled. You need to enable a password login and use inventory with behavioural param of username and password to execute following.

$ ansible gog -i inventory -m copy -a"src=index.html dest=/var/www/html"
Code language: JavaScript (javascript)

Assignment 2

Can you please convert this INI inventory format to yaml inventory format and use it

mail.example.com

[webservers]
foo.example.com
bar.example.com

[dbservers]
one.example.com
two.example.com
three.example.com
Code language: CSS (css)

Assignment 3

Find out what is “ungrouped” and where to use it?

Assignment 4

Find out, is it correct way to keep host in inventory file?

# If you have multiple hosts following a pattern you can specify them like this:
www[001:006].example.com
# Here's another example of host ranges, this time there are no leading 0s: 
db-[99:101]-node.example.com
Code language: PHP (php)

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.