- 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 a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND