{"id":6998,"date":"2021-09-24T14:38:17","date_gmt":"2021-09-24T21:38:17","guid":{"rendered":"https:\/\/blogs.infoblox.com\/?p=6998"},"modified":"2021-09-24T14:39:28","modified_gmt":"2021-09-24T21:39:28","slug":"automating-dtc-creation-with-ansible-tasks-and-infoblox-nios","status":"publish","type":"post","link":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/","title":{"rendered":"Automating DTC creation with Ansible Tasks and Infoblox NIOS"},"content":{"rendered":"<h3><b>Introduction<\/b><\/h3>\n<p>This article is a follow-up to Vedant Sethia\u2019s article about \u201c<strong><a href=\"\/community\/automating-dns-traffic-control-with-ansible-and-infoblox-nios\/\">Automating DNS Traffic Control with Ansible and Infoblox NIOS<\/a><\/strong>.\u201d In this article, I took the individual examples and turned each playbook into an Ansible <strong><a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/user_guide\/basic_concepts.html#tasks\" target=\"_blank\" rel=\"noopener noreferrer\">Task<\/a><\/strong> that you can run from the main playbook to create or remove DTC objects. Also, I explain how to use variables in a file, so a user just needs to edit \u201cdata.yml,\u201d and it will automatically build the DTC Server(s), the DTC Pool, and the DTC LBDN.<\/p>\n<h3><b>What\u2019s needed<\/b><\/h3>\n<ul>\n<li>Ansible &#8211; the <a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/installation_guide\/intro_installation.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>latest<\/strong><\/a> version<\/li>\n<li>Infoblox Ansible Collection\n<ul>\n<li>For installation\/setup, refer to the <strong><a href=\"https:\/\/github.com\/infobloxopen\/infoblox-ansible\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub repository<\/a><\/strong> or <a href=\"https:\/\/galaxy.ansible.com\/infoblox\/nios_modules\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>ansible-galaxy collection<\/strong><\/a>.<\/li>\n<\/ul>\n<\/li>\n<li>The collection of Playbooks and Task &#8211; <a href=\"https:\/\/github.com\/seefor\/ansible-infoblox-playbook\/tree\/master\/dtc\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>github.com\/seefor<\/strong><\/a><\/li>\n<\/ul>\n<h3><b>DTC Server Task<\/b><\/h3>\n<p>Here we are going to take a look at \u201ctask_dtc_server.yml.\u201d<\/p>\n<p><a href=\"\/wp-content\/uploads\/infoblox-blog-dtc-server-task.png\" data-lity=\"\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/infoblox-blog-dtc-server-task.png\" \/><\/a><\/p>\n<p>As you can see above, I made \u201cname,\u201d \u201chost,\u201d and \u201ccomment\u201d variables, and that will read the values from the \u201cdata.yml\u201d file. With Ansible, when you use \u201c<a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/collections\/ansible\/builtin\/items_lookup.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>item<\/strong><\/a>,\u201d it&#8217;s reading a list of variables from a YAML file.<\/p>\n<h3><b>DTC Pool Task and Jinja2 Template<\/b><\/h3>\n<p>To create the \u201cPool,\u201d we have to leverage <a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/user_guide\/playbooks_templating.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Jinja2 Templates<\/strong><\/a>. For example, here is the Jinja2 template \u201ctemp_pool.j2.\u201d<\/p>\n<p><a href=\"\/wp-content\/uploads\/infoblox-blog-dtc-pool-task.png\" data-lity=\"\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/infoblox-blog-dtc-pool-task.png\" \/><\/a><\/p>\n<p>We are reading \u201cname\u201d for the pool and \u201cservers\u201d from the data.yml file. When you run the \u201ccreate_everything.yml,\u201d it will create a new playbook called \u201cc_pool.yml\u201d that looks like this.<\/p>\n<p><a href=\"\/wp-content\/uploads\/infoblox-blog-dtc-pool-task-2.png\" data-lity=\"\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/infoblox-blog-dtc-pool-task-2.png\" \/><\/a><\/p>\n<p>Then execute the \u201cc_pool.yml\u201d for \u201cPool\u201d creation; now we have the Servers and Pool time for the LBDN creation.<\/p>\n<h3><b>DTC LBDN Task<\/b><\/h3>\n<p>Now let\u2019s wrap this all up with the last Task, \u201ctask_dtc_lbdn.yml.\u201d<\/p>\n<p><a href=\"\/wp-content\/uploads\/infoblox-blog-dtc-lbdn-task.png\" data-lity=\"\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/infoblox-blog-dtc-lbdn-task.png\" \/><\/a><\/p>\n<p>The above will create the \u201cLBDN,\u201d and again, we are reading the \u201cname,\u201d \u201cpool,\u201d \u201cauth_zones,\u201d and \u201cpatterns\u201d from the data.yml file.<\/p>\n<h3><b>Data File<\/b><\/h3>\n<p>Here is the \u201cdata.yml\u201d layout<\/p>\n<p><a href=\"\/wp-content\/uploads\/infoblox-blog-dtc-data-yml-file.png\" data-lity=\"\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/infoblox-blog-dtc-data-yml-file.png\" \/><\/a><\/p>\n<p>As you can see, this is where we get all the data points that we used above in each \u201ctask\u201d file.<br \/>\nLet\u2019s see how we call the \u201cdata.yml\u201d and all the \u201ctasks\u201d from one playbook called \u201ccreate_everything.yml.\u201d<\/p>\n<h3><b>Let\u2019s Create Everything<\/b><\/h3>\n<p>We are going to look at the file \u201ccreate_everything.yml.\u201d<\/p>\n<p><a href=\"\/wp-content\/uploads\/infoblox-blog-dtc-create-everything-yml.png\" data-lity=\"\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/infoblox-blog-dtc-create-everything-yml.png\" \/><\/a><\/p>\n<p>The first thing to notice is that we use \u201c<a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/user_guide\/playbooks_variables.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>vars_files<\/strong><\/a>\u201d to read the \u201cdata.yml\u201d file into the playbook. Next, we have \u201c<a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/collections\/ansible\/builtin\/include_tasks_module.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>included_tasks<\/strong><\/a>\u201d under \u201ctasks\u201d that will run each instance of the \u201ctask\u201d files for us. For example, in line 11, we will create \u201cc_pool.yml\u201d from a \u201c<a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/collections\/ansible\/builtin\/template_module.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>template<\/strong><\/a>.\u201d The last \u201ctask\u201d I did not cover in this article is \u201crestart_serverices.yml,\u201d which is self-explanatory.<\/p>\n<h3><b>Demo Time<\/b><\/h3>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/uloiyV28e7c\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h3><b>Conclusion<\/b><\/h3>\n<p>We are leveraging Ansible Task and Infoblox DNS Traffic Control to speed up the deployment of new APPs.<\/p>\n<h3><b>Additional Resources<\/b><\/h3>\n<ul>\n<li>GitHub Repo &#8211; <strong><a href=\"https:\/\/github.com\/seefor\/ansible-infoblox-playbook\/tree\/master\/dtc\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/seefor\/ansible-infoblox-playbook\/tree\/master\/dtc<\/a><\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This article is a follow-up to Vedant Sethia\u2019s article about \u201cAutomating DNS Traffic Control with Ansible and Infoblox NIOS.\u201d In this article, I took the individual examples and turned each playbook into an Ansible Task that you can run from the main playbook to create or remove DTC objects. Also, I explain how to [&hellip;]<\/p>\n","protected":false},"author":260,"featured_media":2891,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[3],"tags":[30,52,81,112],"class_list":{"0":"post-6998","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-community","8":"tag-dns","9":"tag-nios","10":"tag-ansible","11":"tag-vnios","12":"entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Automating DTC creation with Ansible Tasks and Infoblox NIOS<\/title>\n<meta name=\"description\" content=\"This article is a follow-up to Vedant Sethia\u2019s article about \u201cAutomating DNS Traffic Control with Ansible and Infoblox NIOS.\u201d In this article, I took the individual examples and turned each playbook into an Ansible Task that you can run from the main playbook to create or remove DTC objects.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automating DTC creation with Ansible Tasks and Infoblox NIOS\" \/>\n<meta property=\"og:description\" content=\"This article is a follow-up to Vedant Sethia\u2019s article about \u201cAutomating DNS Traffic Control with Ansible and Infoblox NIOS.\u201d In this article, I took the individual examples and turned each playbook into an Ansible Task that you can run from the main playbook to create or remove DTC objects.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/\" \/>\n<meta property=\"og:site_name\" content=\"Infoblox Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-24T21:38:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-24T21:39:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/482461333.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2061\" \/>\n\t<meta property=\"og:image:height\" content=\"1457\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sif Baksh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sif Baksh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/\"},\"author\":{\"name\":\"Sif Baksh\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/person\\\/d78ba19c60e3345e0b057ecb0f990108\"},\"headline\":\"Automating DTC creation with Ansible Tasks and Infoblox NIOS\",\"datePublished\":\"2021-09-24T21:38:17+00:00\",\"dateModified\":\"2021-09-24T21:39:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/\"},\"wordCount\":472,\"publisher\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/482461333.jpg\",\"keywords\":[\"DNS\",\"NIOS\",\"Ansible\",\"vNIOS\"],\"articleSection\":[\"Community\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/\",\"name\":\"Automating DTC creation with Ansible Tasks and Infoblox NIOS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/482461333.jpg\",\"datePublished\":\"2021-09-24T21:38:17+00:00\",\"dateModified\":\"2021-09-24T21:39:28+00:00\",\"description\":\"This article is a follow-up to Vedant Sethia\u2019s article about \u201cAutomating DNS Traffic Control with Ansible and Infoblox NIOS.\u201d In this article, I took the individual examples and turned each playbook into an Ansible Task that you can run from the main playbook to create or remove DTC objects.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/482461333.jpg\",\"contentUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/482461333.jpg\",\"width\":2061,\"height\":1457,\"caption\":\"STIX, TAXII and CISA \u00e4\u00f3\u0144 The Age of Info Sharing, Time & Cost Savings, and Government Involvement\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Community\",\"item\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/category\\\/community\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Automating DTC creation with Ansible Tasks and Infoblox NIOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\",\"name\":\"infoblox.com\\\/blog\\\/\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\",\"name\":\"Infoblox\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/infoblox-logo-2.svg\",\"contentUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/infoblox-logo-2.svg\",\"width\":137,\"height\":30,\"caption\":\"Infoblox\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/person\\\/d78ba19c60e3345e0b057ecb0f990108\",\"name\":\"Sif Baksh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blogs.infoblox.com\\\/wp-content\\\/uploads\\\/avatar_user_260_1582930725-96x96.jpg\",\"url\":\"https:\\\/\\\/blogs.infoblox.com\\\/wp-content\\\/uploads\\\/avatar_user_260_1582930725-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/blogs.infoblox.com\\\/wp-content\\\/uploads\\\/avatar_user_260_1582930725-96x96.jpg\",\"caption\":\"Sif Baksh\"},\"description\":\"Sif is a Principal Sales Engineer at Infoblox where he provides technical expertise regarding Infoblox solutions with a focus on Network Automation and Cybersecurity. He has been with Infoblox for over 7 years, starting in the Professional Services org where he performed NetMRI deployments at many of the largest companies in the world. Outside of work, Sif can be found at the local hackerspace where he volunteers as a leading cybersecurity educator. Online he can be found @sifbaksh running the regex daily channel.\",\"sameAs\":[\"https:\\\/\\\/sifbaksh.com\\\/\"],\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/author\\\/sif-baksh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Automating DTC creation with Ansible Tasks and Infoblox NIOS","description":"This article is a follow-up to Vedant Sethia\u2019s article about \u201cAutomating DNS Traffic Control with Ansible and Infoblox NIOS.\u201d In this article, I took the individual examples and turned each playbook into an Ansible Task that you can run from the main playbook to create or remove DTC objects.","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:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/","og_locale":"en_US","og_type":"article","og_title":"Automating DTC creation with Ansible Tasks and Infoblox NIOS","og_description":"This article is a follow-up to Vedant Sethia\u2019s article about \u201cAutomating DNS Traffic Control with Ansible and Infoblox NIOS.\u201d In this article, I took the individual examples and turned each playbook into an Ansible Task that you can run from the main playbook to create or remove DTC objects.","og_url":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/","og_site_name":"Infoblox Blog","article_published_time":"2021-09-24T21:38:17+00:00","article_modified_time":"2021-09-24T21:39:28+00:00","og_image":[{"width":2061,"height":1457,"url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/482461333.jpg","type":"image\/jpeg"}],"author":"Sif Baksh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sif Baksh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/#article","isPartOf":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/"},"author":{"name":"Sif Baksh","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/person\/d78ba19c60e3345e0b057ecb0f990108"},"headline":"Automating DTC creation with Ansible Tasks and Infoblox NIOS","datePublished":"2021-09-24T21:38:17+00:00","dateModified":"2021-09-24T21:39:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/"},"wordCount":472,"publisher":{"@id":"https:\/\/www.infoblox.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/#primaryimage"},"thumbnailUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/482461333.jpg","keywords":["DNS","NIOS","Ansible","vNIOS"],"articleSection":["Community"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/","url":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/","name":"Automating DTC creation with Ansible Tasks and Infoblox NIOS","isPartOf":{"@id":"https:\/\/www.infoblox.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/#primaryimage"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/#primaryimage"},"thumbnailUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/482461333.jpg","datePublished":"2021-09-24T21:38:17+00:00","dateModified":"2021-09-24T21:39:28+00:00","description":"This article is a follow-up to Vedant Sethia\u2019s article about \u201cAutomating DNS Traffic Control with Ansible and Infoblox NIOS.\u201d In this article, I took the individual examples and turned each playbook into an Ansible Task that you can run from the main playbook to create or remove DTC objects.","breadcrumb":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/#primaryimage","url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/482461333.jpg","contentUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/482461333.jpg","width":2061,"height":1457,"caption":"STIX, TAXII and CISA \u00e4\u00f3\u0144 The Age of Info Sharing, Time & Cost Savings, and Government Involvement"},{"@type":"BreadcrumbList","@id":"https:\/\/www.infoblox.com\/blog\/community\/automating-dtc-creation-with-ansible-tasks-and-infoblox-nios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.infoblox.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Community","item":"https:\/\/www.infoblox.com\/blog\/category\/community\/"},{"@type":"ListItem","position":3,"name":"Automating DTC creation with Ansible Tasks and Infoblox NIOS"}]},{"@type":"WebSite","@id":"https:\/\/www.infoblox.com\/blog\/#website","url":"https:\/\/www.infoblox.com\/blog\/","name":"infoblox.com\/blog\/","description":"","publisher":{"@id":"https:\/\/www.infoblox.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.infoblox.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.infoblox.com\/blog\/#organization","name":"Infoblox","url":"https:\/\/www.infoblox.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/infoblox-logo-2.svg","contentUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/infoblox-logo-2.svg","width":137,"height":30,"caption":"Infoblox"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/person\/d78ba19c60e3345e0b057ecb0f990108","name":"Sif Baksh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blogs.infoblox.com\/wp-content\/uploads\/avatar_user_260_1582930725-96x96.jpg","url":"https:\/\/blogs.infoblox.com\/wp-content\/uploads\/avatar_user_260_1582930725-96x96.jpg","contentUrl":"https:\/\/blogs.infoblox.com\/wp-content\/uploads\/avatar_user_260_1582930725-96x96.jpg","caption":"Sif Baksh"},"description":"Sif is a Principal Sales Engineer at Infoblox where he provides technical expertise regarding Infoblox solutions with a focus on Network Automation and Cybersecurity. He has been with Infoblox for over 7 years, starting in the Professional Services org where he performed NetMRI deployments at many of the largest companies in the world. Outside of work, Sif can be found at the local hackerspace where he volunteers as a leading cybersecurity educator. Online he can be found @sifbaksh running the regex daily channel.","sameAs":["https:\/\/sifbaksh.com\/"],"url":"https:\/\/www.infoblox.com\/blog\/author\/sif-baksh\/"}]}},"_links":{"self":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/6998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/users\/260"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/comments?post=6998"}],"version-history":[{"count":5,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/6998\/revisions"}],"predecessor-version":[{"id":7009,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/6998\/revisions\/7009"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/media\/2891"}],"wp:attachment":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/media?parent=6998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/categories?post=6998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/tags?post=6998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}