{"id":121,"date":"2015-06-16T16:00:17","date_gmt":"2015-06-16T16:00:17","guid":{"rendered":"https:\/\/ruimoreira.co.uk\/?p=121"},"modified":"2015-06-16T16:37:04","modified_gmt":"2015-06-16T16:37:04","slug":"ansible-modules-development","status":"publish","type":"post","link":"https:\/\/ruimoreira.co.uk\/?p=121","title":{"rendered":"Ansible modules development"},"content":{"rendered":"<p>Hello again<\/p>\n<p>So as a hobby I have started working on an <a href=\"http:\/\/www.ansible.com\/home\" target=\"_blank\">Ansible <\/a>module to allow adding static routes to several hosts , I got out my recently acquired Python skills and started cracking at it , if you are curious about how to start developing ansible modules here is a good place to <a href=\"http:\/\/docs.ansible.com\/developing_modules.html\" target=\"_blank\">start <\/a>. the module development itself is not hard to get started with , and if you are already familiar with ansible and python ( in fact you don&#8217;t need python as you can write modules in any language but I have chosen python\u00a0 for mine ) if should be fairly straight forward.<\/p>\n<p>I have chosen this module for implement because it seems that it is a common thing to do as a System Administrator and there is no specific module to do this, of course you could just use the command module to add a static route but this module aims to do a bit more than just that, I am thinking about implementing this for the most relevant unix like platforms , namely :<\/p>\n<p><strong>\u00a0&#8211; Linux<\/strong><\/p>\n<p>&#8211; Red Hat<\/p>\n<p>&#8211; Debian<\/p>\n<p>&#8211; Ubuntu<\/p>\n<p><strong>&#8211; BSD<\/strong><\/p>\n<p>&#8211; Openbsd<\/p>\n<p>&#8211; Freebsd<\/p>\n<p>&#8211; <strong>Solaris <\/strong><\/p>\n<p>If I can find the time and resources I will try to implement the same for also HPUX and Aix but as I don&#8217;t have direct access to those platforms at the moment I cannot promise that I will do so. For now the priority is Linux of course .<\/p>\n<p>The code is available from my <a href=\"https:\/\/github.com\/ruimoreira\/add-static-route\" target=\"_blank\">github repo<\/a> but for now it&#8217;s just an embryo.<\/p>\n<p>Cheers<\/p>\n<p>&nbsp;<\/p>\n<p>Rui<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello again So as a hobby I have started working on an Ansible module to allow adding static routes to several hosts , I got out my recently acquired Python skills and started cracking at it , if you are curious about how to start developing ansible modules here is a good place to start &hellip; <a href=\"https:\/\/ruimoreira.co.uk\/?p=121\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Ansible modules development<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[55,6,16,22],"tags":[59,56,57,58],"wppr_data":{"cwp_meta_box_check":"No","cwp_rev_product_name":"","cwp_rev_product_image":"","cwp_image_link":"image","cwp_rev_price":""},"_links":{"self":[{"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/121"}],"collection":[{"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=121"}],"version-history":[{"count":5,"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":128,"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions\/128"}],"wp:attachment":[{"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ruimoreira.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}