Here we have compiled the most probable DevOps interview questions asked in the industry. You will learn about software version control, Git repository, reverting a commit in Git, Vagrant, continuous testing elements, and the importance of continuous integration, testing, and deployment. These questions are curated after discussing with many interviewers and DevOps Training experts.
Create Roles for a set of tasks and share it over Ansible Galaxy, so that it can be reusable/redistributable.
Using Ansible ad-hoc command you can generate encrypted passwords for modules:
ansible all -i localhost -m debug -a msg={{ my_password | password_hash(sha512, my_secretsalt) }}
Whatever might be the other device you get the IP of that machine and save it to the inventory file and of course you have a ping module.
$ ansible - m ping hostname
Ansible has a huge number of modules (called the ‘module library’) as it can be written in any language. Actually Ansible works by connecting target servers and copying and executing a small program in those target servers those small programs are called Ansible modules. Playbook is a high level declarative script, you just have to invoke modules and modules does the entire thing happen.
Yes, we can create our own Ansible modules. As it can be written in any language it becomes easy for everyone to write their own custom modules. And these are capable of controlling system resources, like services, directories, files, and handling executing system commands also.
Ansible is very simple and powerful, to get all the information of all target server just need to execute the following command:
ansible all -m setup
This controls whether an ansible playbook should prompt for a password by default or not. Usually, it won’t ask. You can set True or False for it in /etc/ansible/ansible.cfg file. ask_pass = True/False
This controls whether an ansible playbook should prompt for a sudo password by default or not. Usually, it won’t ask. You can set True or False for it in /etc/ansible/ansible.cfg file. ask_sudo_pass = True/False
This controls whether an ansible playbook should prompt for a vault password by default or not. Usually, it won’t ask. You can set True or False for it.
Unit tests are available in test/units. To test any file in ansible follow the command:
$ ansible-test units --tox
Contact us for your training requirements! Exchange ideas, develop relationships, and stay up-to-date with emerging practices in the ever-evolving DevOps & Cloud arena.
DevOps Certification Training Course
AWS-DevOps Certification Course
Azure-DevOps Certification Course
Python FullStack Development Course
Python Programming Training Course
Software Testing Certificate Course
AWS Solution Architect Certification Course
Google Cloud Architect Certification Course
Azure Solution Architect Expert Certification
CKA - Certified Kubernetes Administrator
2023 Gamut Gurus Pvt Ltd, All rights Reserved.
3rd floor, Sigma Tech Park Gamma Block, Varthur kodi, Whitefield, Bangalore, Karnataka-560066
#1080, 2482 Yonge Street, Toronto, ON M4P 2H5 Canada