{"id":6891,"date":"2019-10-07T09:10:50","date_gmt":"2019-10-07T09:10:50","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=6891"},"modified":"2021-11-16T07:05:19","modified_gmt":"2021-11-16T07:05:19","slug":"ansible-interview-questions-and-answer-part-7","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-interview-questions-and-answer-part-7\/","title":{"rendered":"Ansible Interview Questions and Answer &#8211; Part 7"},"content":{"rendered":"\n<ol class=\"wp-block-list\"><li>Task to connect(SSH) Ansible to remote host using another user &amp; run the playbook to the remote host using with another user?<\/li><li> What is Ansible vault?<\/li><li> How to decrypt a vault file?<\/li><li> How to encrypt a string in Ansible using Ansible Vault?<\/li><li> If a string is encrypted in a file with a password then how to pass the password using parameter while decrypting?<\/li><li> If a file is encrypted using password &amp; password is stored in a file how to pass the file to decrypt the file?<\/li><li> If a file is encrypted using password &amp; password is also encrypted then how to provide the password while decrypting the file?<\/li><li> What is Ansible galaxy?<\/li><li> What is Tags in Ansible? Why it is used?<\/li><li> What is lookup in Ansible playbook?<\/li><li> How to control the command failure in Ansible?<\/li><li> How to debug your playbook?<\/li><li> What is diff mode?<\/li><li> What is Dry Run in Ansible &amp; how to do that?<\/li><li> What is pre task &amp; post task?<\/li><li> How you can run your all tasks at once?<\/li><li> What is block in Ansible?<\/li><li> What are different variable scopes?<\/li><li> How variable precedence takes place?<\/li><li> Difference between include &amp; import?<\/li><li> How to include custom modules in Ansible?<\/li><li> Describe the role directory structure?<\/li><\/ol>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_60709\"><iframe loading=\"lazy\"  id=\"_ytid_61635\"  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_60709\"  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>Task to connect(SSH) Ansible to remote host using another user &amp; run the playbook to the remote host using with another user? What is Ansible vault? How to decrypt a&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8219,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5038],"tags":[],"class_list":["post-6891","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\/6891","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=6891"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6891\/revisions"}],"predecessor-version":[{"id":25396,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6891\/revisions\/25396"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8219"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=6891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=6891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=6891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}