{"id":739,"date":"2017-12-20T11:21:31","date_gmt":"2017-12-20T11:21:31","guid":{"rendered":"http:\/\/www.lugo-test.com\/?p=739"},"modified":"2017-12-20T11:40:28","modified_gmt":"2017-12-20T11:40:28","slug":"ansible-2-4-online-test","status":"publish","type":"post","link":"https:\/\/www.lugo-test.com\/index.php\/2017\/12\/20\/ansible-2-4-online-test\/","title":{"rendered":"Ansible 2.4 Online Test"},"content":{"rendered":"<p style=\"text-align: left;\"><strong><span style=\"font-size: 18pt;\"><\/p>\n<div><img decoding=\"async\" loading=\"lazy\" style=\"vertical-align:middle\" class=\"alignnone size-full wp-image-750\" src=\"http:\/\/www.lugo-test.com\/blog\/wp-content\/uploads\/2017\/12\/Ansible_Logo.png\" alt=\"\" width=\"170\" height=\"170\" \/><span style=\"font-size: 20pt;\">\u00a0We recently released a new online test in Ansible 2.4!<\/span><\/span><\/strong><\/div>\n<\/p>\n<p><strong><span style=\"font-size: 18pt;\">The test contains the following Ansible topics:\u00a0<\/span><\/strong><\/p>\n<ul>\n<li><span style=\"font-size: 14pt;\">Installation<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">Playbooks<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">Inventory<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">Module Index<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">Network Modules<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">Ansible-Container<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-size: 18pt;\">An example question:<\/span><\/strong><\/p>\n<p><strong><span style=\"font-size: 14pt;\">Considering the below playbook, which tasks will be executed first?<\/span><\/strong><\/p>\n<p><span style=\"font-size: 14pt;\">&#8212;<\/span><br \/>\n<span style=\"font-size: 14pt;\">&#8211; hosts: <\/span>webservers<br \/>\n<span style=\"font-size: 14pt;\">\u00a0 remote_user: root<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">tasks:<\/span><br \/>\n<span style=\"font-size: 14pt;\">&#8211; name: ensure apache is <\/span>at<span style=\"font-size: 14pt;\"> the latest version<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u00a0 yum: name=httpd state=latest<\/span><br \/>\n<span style=\"font-size: 14pt;\">&#8211; name: write the apache config file<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u00a0 template: src=\/srv\/<\/span>httpd<span style=\"font-size: 14pt;\">.j2 dest=\/etc\/httpd.conf<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">&#8211; hosts: databases<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u00a0 remote_user: root<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">tasks:<\/span><br \/>\n<span style=\"font-size: 14pt;\">&#8211; name: ensure <\/span>postgresql<span style=\"font-size: 14pt;\"> is <\/span>at<span style=\"font-size: 14pt;\"> the latest version<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u00a0 yum: name=postgresql state=latest<\/span><br \/>\n<span style=\"font-size: 14pt;\">&#8211; name: ensure that <\/span>postgresql<span style=\"font-size: 14pt;\"> is started<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u00a0 service: name=postgresql state=started<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-size: 14pt;\">Answers:<\/span><\/strong><\/p>\n<ol>\n<li><span style=\"font-size: 14pt;\">apache first and then postgresql<\/span><\/li>\n<li><span style=\"font-size: 14pt;\">postgresql first and then apache <\/span><\/li>\n<li><span style=\"font-size: 14pt;\">They will both run in parallel <\/span><\/li>\n<li><span style=\"font-size: 14pt;\">The order of tasks is not guaranteed<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-size: 18pt;\">What is Ansible?<\/span><\/strong><\/p>\n<p><span style=\"font-size: 14pt;\">Ansible is the simplest way to automate apps and IT infrastructure. Application Deployment + Configuration Management + Continuous Delivery.<\/span><\/p>\n<p><strong><span style=\"font-size: 18pt;\">Common use\u00a0cases:<\/span><\/strong><\/p>\n<p><span style=\"font-size: 14pt;\">Provisioning cloud infrastructure, deploying application code, managing SSH keys, configuring databases, and setting up web servers. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0We recently released a new online test in Ansible 2.4! The test contains the following Ansible topics:\u00a0 Installation Playbooks Inventory Module Index Network Modules Ansible-Container &nbsp; An example question: Considering the below playbook, which tasks will be executed first? &#8212; &#8211; hosts: webservers \u00a0 remote_user: root tasks: &#8211; name: ensure apache is at the latest [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/posts\/739"}],"collection":[{"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/comments?post=739"}],"version-history":[{"count":11,"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":754,"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/posts\/739\/revisions\/754"}],"wp:attachment":[{"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/media?parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/categories?post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lugo-test.com\/index.php\/wp-json\/wp\/v2\/tags?post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}