{"id":11,"date":"2025-06-09T13:31:25","date_gmt":"2025-06-09T13:31:25","guid":{"rendered":"https:\/\/volenbovskyi.net\/staging\/7023\/?p=11"},"modified":"2025-06-09T13:31:27","modified_gmt":"2025-06-09T13:31:27","slug":"ansible-style-guides","status":"publish","type":"post","link":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/","title":{"rendered":"Ansible Style Guides"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There are so many Ansible Style Guides so here are the ones that I used to create my own:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More\u00a0<strong>basic<\/strong> ones:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/user_guide\/playbooks_best_practices.html\">Best practices from Ansible community\/Red Hat<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/labs.demoredhat.com\/decks\/ansible_best_practices.pdf\">Presentation on best practices from Red Hat<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>More advanced<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/Linuxfabrik\/lfops\/blob\/main\/CONTRIBUTING.rst\">Linux Fabrik\u2019s Ansible Development Guidelines<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/thomascfoulds.com\/2021\/09\/29\/25-tips-for-using-ansible-in-large-projects.html\">Tips from Thomas C.Foulds<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/andidog.de\/blog\/2017-04-24-ansible-best-practices\">Ansible best practices from Andreas Sommer<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/redhat-cop.github.io\/automation-good-practices\/\">Red Hat Communities of Practice role development guidelines<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Also certain topics are covered in<\/strong>&nbsp;<a href=\"https:\/\/de.slideshare.net\/slideshow\/best-practices-for-ansible\/95475433#37\">Best practices presentation from George Shuklin<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bonus <\/strong>&#8211; some examples<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/geerlingguy\/ansible-for-devops\">https:\/\/github.com\/geerlingguy\/ansible-for-devops<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/vbotka\/ansible-examples\">https:\/\/github.com\/vbotka\/ansible-examples<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are so many Ansible Style Guides so here are the ones that I used to create my own: More\u00a0basic ones: Best practices from Ansible community\/Red Hat Presentation on best practices from Red Hat More advanced: Linux Fabrik\u2019s Ansible Development Guidelines Tips from Thomas C.Foulds Ansible best practices from Andreas Sommer Red Hat Communities of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[7],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ansible"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ansible Style Guides - DevOps SRE Notes<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ansible Style Guides - DevOps SRE Notes\" \/>\n<meta property=\"og:description\" content=\"There are so many Ansible Style Guides so here are the ones that I used to create my own: More\u00a0basic ones: Best practices from Ansible community\/Red Hat Presentation on best practices from Red Hat More advanced: Linux Fabrik\u2019s Ansible Development Guidelines Tips from Thomas C.Foulds Ansible best practices from Andreas Sommer Red Hat Communities of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps SRE Notes\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-09T13:31:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-09T13:31:27+00:00\" \/>\n<meta name=\"author\" content=\"VOLENBOVSKYI\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"VOLENBOVSKYI\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/\"},\"author\":{\"name\":\"VOLENBOVSKYI\",\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/#\\\/schema\\\/person\\\/add3bccbe8d9c45f4df6e032bc2bfb14\"},\"headline\":\"Ansible Style Guides\",\"datePublished\":\"2025-06-09T13:31:25+00:00\",\"dateModified\":\"2025-06-09T13:31:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/\"},\"wordCount\":93,\"commentCount\":0,\"keywords\":[\"ansible\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/\",\"url\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/\",\"name\":\"Ansible Style Guides - DevOps SRE Notes\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/#website\"},\"datePublished\":\"2025-06-09T13:31:25+00:00\",\"dateModified\":\"2025-06-09T13:31:27+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/#\\\/schema\\\/person\\\/add3bccbe8d9c45f4df6e032bc2bfb14\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/ansible-style-guides\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ansible Style Guides\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/#website\",\"url\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/\",\"name\":\"DevOps SRE Notes\",\"description\":\"Blog by Kostiantyn Volenbovskyi\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/#\\\/schema\\\/person\\\/add3bccbe8d9c45f4df6e032bc2bfb14\",\"name\":\"VOLENBOVSKYI\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62d5a7dc75509395436bfeb7f1c1505f3beeb075912ff4bb7d29820fb363c88c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62d5a7dc75509395436bfeb7f1c1505f3beeb075912ff4bb7d29820fb363c88c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62d5a7dc75509395436bfeb7f1c1505f3beeb075912ff4bb7d29820fb363c88c?s=96&d=mm&r=g\",\"caption\":\"VOLENBOVSKYI\"},\"url\":\"https:\\\/\\\/volenbovskyi.net\\\/staging\\\/7023\\\/author\\\/volenbovskyi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ansible Style Guides - DevOps SRE Notes","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/","og_locale":"en_US","og_type":"article","og_title":"Ansible Style Guides - DevOps SRE Notes","og_description":"There are so many Ansible Style Guides so here are the ones that I used to create my own: More\u00a0basic ones: Best practices from Ansible community\/Red Hat Presentation on best practices from Red Hat More advanced: Linux Fabrik\u2019s Ansible Development Guidelines Tips from Thomas C.Foulds Ansible best practices from Andreas Sommer Red Hat Communities of [&hellip;]","og_url":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/","og_site_name":"DevOps SRE Notes","article_published_time":"2025-06-09T13:31:25+00:00","article_modified_time":"2025-06-09T13:31:27+00:00","author":"VOLENBOVSKYI","twitter_card":"summary_large_image","twitter_misc":{"Written by":"VOLENBOVSKYI","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/#article","isPartOf":{"@id":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/"},"author":{"name":"VOLENBOVSKYI","@id":"https:\/\/volenbovskyi.net\/staging\/7023\/#\/schema\/person\/add3bccbe8d9c45f4df6e032bc2bfb14"},"headline":"Ansible Style Guides","datePublished":"2025-06-09T13:31:25+00:00","dateModified":"2025-06-09T13:31:27+00:00","mainEntityOfPage":{"@id":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/"},"wordCount":93,"commentCount":0,"keywords":["ansible"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/","url":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/","name":"Ansible Style Guides - DevOps SRE Notes","isPartOf":{"@id":"https:\/\/volenbovskyi.net\/staging\/7023\/#website"},"datePublished":"2025-06-09T13:31:25+00:00","dateModified":"2025-06-09T13:31:27+00:00","author":{"@id":"https:\/\/volenbovskyi.net\/staging\/7023\/#\/schema\/person\/add3bccbe8d9c45f4df6e032bc2bfb14"},"breadcrumb":{"@id":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/volenbovskyi.net\/staging\/7023\/ansible-style-guides\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/volenbovskyi.net\/staging\/7023\/"},{"@type":"ListItem","position":2,"name":"Ansible Style Guides"}]},{"@type":"WebSite","@id":"https:\/\/volenbovskyi.net\/staging\/7023\/#website","url":"https:\/\/volenbovskyi.net\/staging\/7023\/","name":"DevOps SRE Notes","description":"Blog by Kostiantyn Volenbovskyi","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/volenbovskyi.net\/staging\/7023\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/volenbovskyi.net\/staging\/7023\/#\/schema\/person\/add3bccbe8d9c45f4df6e032bc2bfb14","name":"VOLENBOVSKYI","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/62d5a7dc75509395436bfeb7f1c1505f3beeb075912ff4bb7d29820fb363c88c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/62d5a7dc75509395436bfeb7f1c1505f3beeb075912ff4bb7d29820fb363c88c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/62d5a7dc75509395436bfeb7f1c1505f3beeb075912ff4bb7d29820fb363c88c?s=96&d=mm&r=g","caption":"VOLENBOVSKYI"},"url":"https:\/\/volenbovskyi.net\/staging\/7023\/author\/volenbovskyi\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":1,"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":12,"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/posts\/11\/revisions\/12"}],"wp:attachment":[{"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/volenbovskyi.net\/staging\/7023\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}