{"id":6870,"date":"2019-10-07T08:03:49","date_gmt":"2019-10-07T08:03:49","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=6870"},"modified":"2021-11-16T07:12:41","modified_gmt":"2021-11-16T07:12:41","slug":"ansible-interview-questions-and-answer-part-4","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-interview-questions-and-answer-part-4\/","title":{"rendered":"Ansible Interview Questions and Answer &#8211; Part 4"},"content":{"rendered":"\n<ol class=\"wp-block-list\"><li>What is local action in Ansible?<\/li><li>What are the roles in Ansible?<\/li><li>Write a playbook for installation of apache in ubuntu and centos?<\/li><li>How to create a role in ansible?<\/li><li>Different types of inventories in ansible?<\/li><li>if we want system information of machine how we will get the data with ansible like we use facter in puppet ?<\/li><li>In which language we write playbooks in ansible?<\/li><li>Activity that we use with ansibles or advantage Functionality or purpose of ansible using in your project?<\/li><li>How to launch an LDAP server using ansible?<\/li><li>How ansible works.. and what are the playbook written other than the basic playbooks ?<\/li><li>For example there are 4 aps server running and 4 websers running and we have a new code change and this change should automatically copy to these different servers using ansible, how I will come to know new code is generated.<\/li><li>Have u done any automation like app goes down then for self healing of the app kind of the thing. <br>\n73  Have  u written any playbook. Explain it<\/li><li>what is a dynamic inventory  in ansible?<\/li><li>How can you manage cloud services with ansible?<\/li><li>How can you protect sensitive information in ansible?<\/li><li>How can you save the output of module execution in ansible?<\/li><li>How can you manage error handling?<\/li><li>what are conditionals in ansible?<\/li><li>write a playbook to create AMI on AWS?<\/li><\/ol>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_80835\"><iframe loading=\"lazy\"  id=\"_ytid_22350\"  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_80835\"  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 local action in Ansible? What are the roles in Ansible? Write a playbook for installation of apache in ubuntu and centos? How to create a role in ansible?&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8345,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5038],"tags":[],"class_list":["post-6870","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\/6870","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=6870"}],"version-history":[{"count":4,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6870\/revisions"}],"predecessor-version":[{"id":25405,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6870\/revisions\/25405"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8345"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=6870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=6870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=6870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}