Top 20 Ansible Interview Questions 2021

 Top 20 Ansible Interview Questions 

Top 20 Ansible Interview Questions 2021
  1. What Is Ansible ?
  2. What is ad hoc commands in Ansible ?.
  3. How to creating file and directory using Ansible ?.
  4. How to copy the data from source to destination using Ansible ?.
  5. How to fetch environment variables from the server using Ansible ?.
  6. What is Handlers ?.
  7. Explain Ansible structure.
  8. What is difference between Template and Files ?.
  9. How to copy the from source to destination via Ansible ?.
  10. What is Roles in Ansible ?.
  11. How to check the whether the syntax is correct or not for playbook ?.
  12. How to call below ymal playbooks inside the playbook (main.yaml) ?.
    1. Test1.yaml
    2. Test2.yaml
    3. Test3.yaml
  13. Suppose there are 5 files on source server, 3 files are already copied on destination. Now need to copy 2 files to destination. Which module  do you use ?.
  14. Suppose on AWS Instance, IP is changing dynamically. How to capture those IP via ansible playbook ?.
  15. How you will fetch information in .csv or excel format using Ansible ?.
  16. what is host file in Ansible ?.
  17. Can we create separate configuration file in Ansible?.
  18. What is Ansible.cfg ?.
  19. What is the licensing part in Ansible ?.
  20. What is Ansible facts ?.
mukesh.thakur87: