{"id":5631,"date":"2018-11-28T04:50:02","date_gmt":"2018-11-28T04:50:02","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=5631"},"modified":"2022-05-26T06:00:51","modified_gmt":"2022-05-26T06:00:51","slug":"ansible-variable-lab-excercise-part-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-variable-lab-excercise-part-2\/","title":{"rendered":"Ansible Variable Lab &#038; Excercise \u2013 Part 6"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5637\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/11\/Ansible-Variables-2-copy.png\" alt=\"\" width=\"400\" height=\"215\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/11\/Ansible-Variables-2-copy.png 400w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/11\/Ansible-Variables-2-copy-300x161.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<ol>\n<li>\n<h3>Assigment 1 &#8211; Create a playbook and setup a webserver(httpd) and use httpd as a variable decalared in role var file<\/h3>\n<\/li>\n<li>\n<h3>Assigment 2 &#8211; Create a playbook and setup a webserver(httpd) and use httpd as a variable decalared using prompt<\/h3>\n<\/li>\n<li>\n<h3>Assigment 3 &#8211; Create a playbook and setup a webserver(httpd) and find a list of .txt file in some directory and output using register variables<\/h3>\n<\/li>\n<li>\n<h3>Assigment 4 &#8211; Create a playbook and setup a webserver(httpd), copy a index.html and interpolate variables in template file decalared in playbook.<\/h3>\n<\/li>\n<\/ol>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_19651\"><iframe loading=\"lazy\"  id=\"_ytid_91098\"  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_19651\"  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>Assigment 1 &#8211; Create a playbook and setup a webserver(httpd) and use httpd as a variable decalared in role var file Assigment 2 &#8211; Create a playbook and setup a&#8230; <\/p>\n","protected":false},"author":1,"featured_media":5637,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5038],"tags":[639,5035,5036,5040,5045],"class_list":["post-5631","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ansible","tag-ansible","tag-excercise","tag-lab","tag-playbook","tag-variable"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5631","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=5631"}],"version-history":[{"count":7,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5631\/revisions"}],"predecessor-version":[{"id":30138,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5631\/revisions\/30138"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/5637"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=5631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=5631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=5631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}