{"id":6889,"date":"2019-10-07T09:10:20","date_gmt":"2019-10-07T09:10:20","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=6889"},"modified":"2021-11-16T07:05:31","modified_gmt":"2021-11-16T07:05:31","slug":"ansible-interview-questions-and-answer-part-6","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-interview-questions-and-answer-part-6\/","title":{"rendered":"Ansible Interview Questions and Answer &#8211; Part 6"},"content":{"rendered":"\n<ol class=\"wp-block-list\"><li>What is Ansible?<\/li><li> What is Configuration Management?<\/li><li> Is Ansible only a tool for Configuration Management?<\/li><li> What are the components of Ansible?<\/li><li> How Ansible works?<\/li><li> What are the other tools in market other than Ansible?<\/li><li> How Ansible is different from Chef &amp; Puppet?<\/li><li> What is Inventory in Ansible?<\/li><li> What are the types of Inventories?<\/li><li> What is play &amp; playbook?<\/li><li> Difference between hosts &amp; groups?<\/li><li> What is Roles?<\/li><li> How to install a Role?<\/li><li> How to install multiple roles?<\/li><li> How to create roles?<\/li><li> What is Dynamic Inventory &amp; when we use it &amp; for what?<\/li><li> Where is the Ansible Configuration file located?<\/li><li> What are the different ways other than SSH by which Ansible can connect to remote hosts?<\/li><li> What is variable in Ansible?<\/li><li> What are different types of variables?<\/li><li> How to assign variables in group vars &amp; hosts vars?<\/li><li> Difference between File &amp; Template directory in Roles?<\/li><li> Difference between default &amp; vars directory in Roles?<\/li><li> What is Jinja 2 template?<\/li><li> What is modules in Ansible?<\/li><li> Difference between COPY &amp; FILE modules?<\/li><li> Difference between SHELL &amp; COMMAND modules?<\/li><li> What is Setup module? what it does?<\/li><li> What is register &amp; debug in Ansible?<\/li><li> What is changed_when in Ansible?<\/li><li> Can we disable automatic facts gathering in Ansible?<\/li><li> How error handling can be done in Ansible?<\/li><li> How to ignore failed commands in Ansible?<\/li><li> What is handlers? Why we use Handlers in Ansible?<\/li><li> What is Privilege Escalation in Ansible?<\/li><\/ol>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_68970\"><iframe loading=\"lazy\"  id=\"_ytid_28225\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_68970\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>What is Ansible? What is Configuration Management? Is Ansible only a tool for Configuration Management? What are the components of Ansible? How Ansible works? What are the other tools in&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8220,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5038],"tags":[],"class_list":["post-6889","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ansible"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=6889"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6889\/revisions"}],"predecessor-version":[{"id":25398,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6889\/revisions\/25398"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8220"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=6889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=6889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=6889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}