{"id":6864,"date":"2019-10-07T08:02:15","date_gmt":"2019-10-07T08:02:15","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=6864"},"modified":"2021-11-16T07:13:47","modified_gmt":"2021-11-16T07:13:47","slug":"ansible-interview-questions-and-answer-part-1","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-interview-questions-and-answer-part-1\/","title":{"rendered":"Ansible Interview Questions and Answer &#8211; Part 1"},"content":{"rendered":"\n<ol class=\"wp-block-list\"><li>What is  inventory file used for and default inventory host location?<\/li><li>What is ansible configuration file used for and its default path?<\/li><li>Do you write your inventory file?<\/li><li>How many types of variables and precedence?<\/li><li>Write the command to find the python version on nodes?<\/li><li>What is the file structure of ansible roles?<\/li><li>What happen when one node or instance is unreachable?<\/li><li>What happen when one task  is failed in playbook?<\/li><li>I have 20 servers , I want to install one package in 5 servers and other package in next 5 servers..like that How to write in ansible script for that\u2026Explain?<\/li><li>What is the architecture of ansible?<\/li><li>How do I supply variables while executing the playbook in ansible?<\/li><li>Explain about the tags in ansible?<\/li><li>How to execute failure playbook again<\/li><li>How is ansible diffrent than any other configuration management tool?<\/li><li>Ansible playbooks are written in what format?<\/li><li>What is a module in Ansible?<\/li><li>What is inventory used for in ansible?<\/li><li>Name three places where ansible variables can be stored?<\/li><li>What connection anible establishes with  linux and windows node.<\/li><li>Diffrence between Remote and local execution in ansible.<\/li><\/ol>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_88267\"><iframe loading=\"lazy\"  id=\"_ytid_69419\"  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_88267\"  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 inventory file used for and default inventory host location? What is ansible configuration file used for and its default path? Do you write your inventory file? How many&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8350,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5038],"tags":[],"class_list":["post-6864","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\/6864","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=6864"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6864\/revisions"}],"predecessor-version":[{"id":25408,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6864\/revisions\/25408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8350"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=6864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=6864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=6864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}