{"id":6196,"date":"2019-07-17T04:55:19","date_gmt":"2019-07-17T04:55:19","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=6196"},"modified":"2022-05-26T06:01:38","modified_gmt":"2022-05-26T06:01:38","slug":"ansible-windows-playbook-lab-excercise-part-4","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-windows-playbook-lab-excercise-part-4\/","title":{"rendered":"Ansible Windows Playbook Lab &#038; Excercise \u2013 Part 8"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Write a playbook to Create a dir, named with your-name inside C:\\HPE and create a file named with &#8220;readme.txt&#8221; inside &#8220;C:\\HPE\\ and content of the file should be &#8220;I love India by your-name&#8221;.<\/li><li>Write a playbook to  Create a user named with &#8220;ansible&#8221; and password &#8220;ansible in Windows server<\/li><li>Write a playbook to Create a file called &#8220;helloworld.ps1&#8221; in C:\\HPE\\ with content &#8220;mkdir devopsschool&#8221; and run a helloworld.ps1.<\/li><li>Write a playbook to Download one of the msi file 64 bit from https:\/\/www.7-zip.org\/download.html to windows remote and install it<\/li><li>Write a playbook to Install a IIS and start a IIS  <\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_93629\"><iframe loading=\"lazy\"  id=\"_ytid_31319\"  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_93629\"  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>Write a playbook to Create a dir, named with your-name inside C:\\HPE and create a file named with &#8220;readme.txt&#8221; inside &#8220;C:\\HPE\\ and content of the file should be &#8220;I love&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5038],"tags":[],"class_list":["post-6196","post","type-post","status-publish","format-standard","hentry","category-ansible"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6196","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=6196"}],"version-history":[{"count":5,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6196\/revisions"}],"predecessor-version":[{"id":30140,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6196\/revisions\/30140"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=6196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=6196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=6196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}