{"id":5289,"date":"2018-09-05T08:55:39","date_gmt":"2018-09-05T08:55:39","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=5289"},"modified":"2022-05-26T06:00:31","modified_gmt":"2022-05-26T06:00:31","slug":"ansible-playbook-lab-excercise-part-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-playbook-lab-excercise-part-2\/","title":{"rendered":"Ansible Playbook Lab &#038; Excercise \u2013 Part 4"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5351\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/09\/ansible-playbook-lab.png\" alt=\"\" width=\"600\" height=\"315\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/09\/ansible-playbook-lab.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/09\/ansible-playbook-lab-300x158.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Execution Mode \u2013 Remote<\/p>\n<ol>\n<li>\n<h4>Write a Ansible Playbook to create a group called \u201cdeploy\u201d<\/h4>\n<\/li>\n<li>\n<h4>Write a Ansible Playbook to create a user called \u201cdeploy-user\u201d which is part of group called \u201cdeploy\u201d and with \/bin\/bash shell.<\/h4>\n<\/li>\n<li>\n<h4>Write a Ansible Playbook to install package named \u201chttpd\u201d in RHEL\/centos.<\/h4>\n<\/li>\n<li>\n<h4>Write a Ansible Playbook to start and enable the service named \u201chttpd\u201d<\/h4>\n<\/li>\n<li>\n<h4>Write a Ansible Playbook to create a file called \u201cindex.html\u201d in \/var\/www\/html with some dummy html contents.<\/h4>\n<\/li>\n<li>\n<h4>Write a Ansible Playbook to reboot a self machine.<\/h4>\n<\/li>\n<li>\n<h4>Write a Ansible Playbook to install a package called \u201cgit\u201d, \u201cwget\u201d.<\/h4>\n<\/li>\n<li>\n<h4>Write a Ansible Playbook to clone git repo. thttps:\/\/github.com\/scmgalaxy\/ansible-role-template<\/h4>\n<\/li>\n<li>\n<h4>Now Merge all Top Playbook into one and run and verify<\/h4>\n<\/li>\n<\/ol>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_65576\"><iframe loading=\"lazy\"  id=\"_ytid_57258\"  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_65576\"  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>Execution Mode \u2013 Remote Write a Ansible Playbook to create a group called \u201cdeploy\u201d Write a Ansible Playbook to create a user called \u201cdeploy-user\u201d which is part of group called&#8230; <\/p>\n","protected":false},"author":1,"featured_media":5351,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5038],"tags":[639,5035,5036,297,5040],"class_list":["post-5289","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ansible","tag-ansible","tag-excercise","tag-lab","tag-module","tag-playbook"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5289","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=5289"}],"version-history":[{"count":6,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5289\/revisions"}],"predecessor-version":[{"id":30136,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5289\/revisions\/30136"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/5351"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=5289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=5289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=5289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}