- What is the purpose and location of ansible.cfg file.
- Name any two settings from anible.cfg file.
- Please write below a sample inventory file with host, group & group of groups syntax in it.
- What is the diffrence between group_vars & host_vars directory?
- What are adhocs commands used for & write below syntax of a ad hocs command?
- Write below ad hoc command to gather fact varibales on all the hosts from the inventory file?
- What format does ansible ad hoc command returns the output?
- Name three types of modules in ansible?
- Name any 10 modules in ansible that you have used.
- How to list all the ansible core modules from command line.
- How to display all the options/attributes for apt module from command line.
- How can you check mandatory option for any module from command line?
- What is setup module used for?
- Write down sample global play declaration
- Write down any two tasks from playbook with its proper format and names.
- Whats is the diffrence between sudo and become module and its purpose.
- Write down playbook syntax of starting ntp service on webserver and dbservers host group at once.
- How to take user input from a playbook?
- What is debug module used for in playbooks?
- How to store output of any task into a varible from playbook?
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals