{"id":100,"date":"2019-07-01T12:06:44","date_gmt":"2019-07-01T04:06:44","guid":{"rendered":"http:\/\/mayanknauni.com\/?p=100"},"modified":"2019-07-01T13:04:16","modified_gmt":"2019-07-01T05:04:16","slug":"network-automation-with-ansible-playbook","status":"publish","type":"post","link":"https:\/\/mayanknauni.com\/?p=100","title":{"rendered":"Network Automation with Ansible \u2013 Playbook"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Playbooks for Fetching Output:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have multiple IOS commands. The playbook will perform all the commands on each device one by one.<\/p>\n\n\n\n<ul class=\"wp-block-gallery alignwide columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1823\" height=\"1051\" src=\"https:\/\/i1.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-ARP-2.png?fit=604%2C348&amp;ssl=1\" alt=\"\" data-id=\"105\" data-link=\"https:\/\/mayanknauni.com\/?attachment_id=105\" class=\"wp-image-105\" srcset=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-ARP-2.png?w=1823&amp;ssl=1 1823w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-ARP-2.png?resize=300%2C173&amp;ssl=1 300w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-ARP-2.png?resize=768%2C443&amp;ssl=1 768w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-ARP-2.png?resize=1024%2C590&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption><strong>Get ARP<\/strong><\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1766\" height=\"937\" src=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-MAC.png?fit=604%2C320&amp;ssl=1\" alt=\"\" data-id=\"106\" data-link=\"https:\/\/mayanknauni.com\/?attachment_id=106\" class=\"wp-image-106\" srcset=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-MAC.png?w=1766&amp;ssl=1 1766w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-MAC.png?resize=300%2C159&amp;ssl=1 300w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-MAC.png?resize=768%2C407&amp;ssl=1 768w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-MAC.png?resize=1024%2C543&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption><strong>Get MAC<\/strong><\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1823\" height=\"1081\" src=\"https:\/\/i1.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Multiple-ISO-Command.png?fit=604%2C358&amp;ssl=1\" alt=\"\" data-id=\"107\" data-link=\"https:\/\/mayanknauni.com\/?attachment_id=107\" class=\"wp-image-107\" srcset=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Multiple-ISO-Command.png?w=1823&amp;ssl=1 1823w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Multiple-ISO-Command.png?resize=300%2C178&amp;ssl=1 300w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Multiple-ISO-Command.png?resize=768%2C455&amp;ssl=1 768w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Multiple-ISO-Command.png?resize=1024%2C607&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption><strong>Running Multiple ISO Commands<\/strong><\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1832\" height=\"753\" src=\"https:\/\/i2.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Saving-Output-to-a-File.png?fit=604%2C248&amp;ssl=1\" alt=\"\" data-id=\"108\" data-link=\"https:\/\/mayanknauni.com\/?attachment_id=108\" class=\"wp-image-108\" srcset=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Saving-Output-to-a-File.png?w=1832&amp;ssl=1 1832w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Saving-Output-to-a-File.png?resize=300%2C123&amp;ssl=1 300w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Saving-Output-to-a-File.png?resize=768%2C316&amp;ssl=1 768w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Saving-Output-to-a-File.png?resize=1024%2C421&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption><strong>Saving Output to a File<\/strong><\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1830\" height=\"787\" src=\"https:\/\/i1.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Save-Running-Configuration-to-a-File.png?fit=604%2C260&amp;ssl=1\" alt=\"\" data-id=\"109\" data-link=\"https:\/\/mayanknauni.com\/?attachment_id=109\" class=\"wp-image-109\" srcset=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Save-Running-Configuration-to-a-File.png?w=1830&amp;ssl=1 1830w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Save-Running-Configuration-to-a-File.png?resize=300%2C129&amp;ssl=1 300w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Save-Running-Configuration-to-a-File.png?resize=768%2C330&amp;ssl=1 768w, https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Save-Running-Configuration-to-a-File.png?resize=1024%2C440&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption><strong>Get Running Configuration and Save it to a File<\/strong><\/figcaption><\/figure><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_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":[4],"tags":[],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-netdevops"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Abhay Kranwal\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/mayanknauni.com\/?p=100\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Cloud Whisperer \u2013 Taming the Digital Dragon\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Network Automation with Ansible \u2013 Playbook Cloud Whisperer\" \/>\n\t\t<meta property=\"og:description\" content=\"Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/mayanknauni.com\/?p=100\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2023\/08\/cropped-cropped-Blue-and-Green-Modern-Technology-Logo.png?fit=333%2C342&#038;ssl=1\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2023\/08\/cropped-cropped-Blue-and-Green-Modern-Technology-Logo.png?fit=333%2C342&#038;ssl=1\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-07-01T04:06:44+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-07-01T05:04:16+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Network Automation with Ansible \u2013 Playbook Cloud Whisperer\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2023\/08\/cropped-cropped-Blue-and-Green-Modern-Technology-Logo.png?fit=333%2C342&amp;ssl=1\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#blogposting\",\"name\":\"Network Automation with Ansible \\u2013 Playbook Cloud Whisperer\",\"headline\":\"Network Automation with Ansible \\u2013 Playbook\",\"author\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i1.wp.com\\\/mayanknauni.com\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/Get-ARP-2.png?fit=604%2C348&amp;ssl=1\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100\\\/#articleImage\"},\"datePublished\":\"2019-07-01T12:06:44+08:00\",\"dateModified\":\"2019-07-01T13:04:16+08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#webpage\"},\"articleSection\":\"NetDevOps\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mayanknauni.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mayanknauni.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?cat=4#listItem\",\"name\":\"NetDevOps\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?cat=4#listItem\",\"position\":2,\"name\":\"NetDevOps\",\"item\":\"https:\\\/\\\/mayanknauni.com\\\/?cat=4\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#listItem\",\"name\":\"Network Automation with Ansible \\u2013 Playbook\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mayanknauni.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#listItem\",\"position\":3,\"name\":\"Network Automation with Ansible \\u2013 Playbook\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?cat=4#listItem\",\"name\":\"NetDevOps\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/#person\",\"name\":\"Mayank Nauni\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8adb58e2795dfce95a74d7fd72c38f682f8514e4545ad8099e86a0a34d736417?s=96&r=g\",\"width\":96,\"height\":96,\"caption\":\"Mayank Nauni\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?author=2#author\",\"url\":\"https:\\\/\\\/mayanknauni.com\\\/?author=2\",\"name\":\"Abhay Kranwal\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0247e6ad33f9679b8870c8291916b105dbdf3eefbe42e3e2991fd64e39240e41?s=96&r=g\",\"width\":96,\"height\":96,\"caption\":\"Abhay Kranwal\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#webpage\",\"url\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100\",\"name\":\"Network Automation with Ansible \\u2013 Playbook Cloud Whisperer\",\"description\":\"Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?p=100#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/?author=2#author\"},\"datePublished\":\"2019-07-01T12:06:44+08:00\",\"dateModified\":\"2019-07-01T13:04:16+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/#website\",\"url\":\"https:\\\/\\\/mayanknauni.com\\\/\",\"name\":\"Cloud Whisperer\",\"description\":\"Taming the Digital Dragon\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/mayanknauni.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Network Automation with Ansible \u2013 Playbook Cloud Whisperer","description":"Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have","canonical_url":"https:\/\/mayanknauni.com\/?p=100","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/mayanknauni.com\/?p=100#blogposting","name":"Network Automation with Ansible \u2013 Playbook Cloud Whisperer","headline":"Network Automation with Ansible \u2013 Playbook","author":{"@id":"https:\/\/mayanknauni.com\/?author=2#author"},"publisher":{"@id":"https:\/\/mayanknauni.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/i1.wp.com\/mayanknauni.com\/wp-content\/uploads\/2019\/07\/Get-ARP-2.png?fit=604%2C348&amp;ssl=1","@id":"https:\/\/mayanknauni.com\/?p=100\/#articleImage"},"datePublished":"2019-07-01T12:06:44+08:00","dateModified":"2019-07-01T13:04:16+08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/mayanknauni.com\/?p=100#webpage"},"isPartOf":{"@id":"https:\/\/mayanknauni.com\/?p=100#webpage"},"articleSection":"NetDevOps"},{"@type":"BreadcrumbList","@id":"https:\/\/mayanknauni.com\/?p=100#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/mayanknauni.com#listItem","position":1,"name":"Home","item":"https:\/\/mayanknauni.com","nextItem":{"@type":"ListItem","@id":"https:\/\/mayanknauni.com\/?cat=4#listItem","name":"NetDevOps"}},{"@type":"ListItem","@id":"https:\/\/mayanknauni.com\/?cat=4#listItem","position":2,"name":"NetDevOps","item":"https:\/\/mayanknauni.com\/?cat=4","nextItem":{"@type":"ListItem","@id":"https:\/\/mayanknauni.com\/?p=100#listItem","name":"Network Automation with Ansible \u2013 Playbook"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mayanknauni.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/mayanknauni.com\/?p=100#listItem","position":3,"name":"Network Automation with Ansible \u2013 Playbook","previousItem":{"@type":"ListItem","@id":"https:\/\/mayanknauni.com\/?cat=4#listItem","name":"NetDevOps"}}]},{"@type":"Person","@id":"https:\/\/mayanknauni.com\/#person","name":"Mayank Nauni","image":{"@type":"ImageObject","@id":"https:\/\/mayanknauni.com\/?p=100#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/8adb58e2795dfce95a74d7fd72c38f682f8514e4545ad8099e86a0a34d736417?s=96&r=g","width":96,"height":96,"caption":"Mayank Nauni"}},{"@type":"Person","@id":"https:\/\/mayanknauni.com\/?author=2#author","url":"https:\/\/mayanknauni.com\/?author=2","name":"Abhay Kranwal","image":{"@type":"ImageObject","@id":"https:\/\/mayanknauni.com\/?p=100#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0247e6ad33f9679b8870c8291916b105dbdf3eefbe42e3e2991fd64e39240e41?s=96&r=g","width":96,"height":96,"caption":"Abhay Kranwal"}},{"@type":"WebPage","@id":"https:\/\/mayanknauni.com\/?p=100#webpage","url":"https:\/\/mayanknauni.com\/?p=100","name":"Network Automation with Ansible \u2013 Playbook Cloud Whisperer","description":"Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/mayanknauni.com\/#website"},"breadcrumb":{"@id":"https:\/\/mayanknauni.com\/?p=100#breadcrumblist"},"author":{"@id":"https:\/\/mayanknauni.com\/?author=2#author"},"creator":{"@id":"https:\/\/mayanknauni.com\/?author=2#author"},"datePublished":"2019-07-01T12:06:44+08:00","dateModified":"2019-07-01T13:04:16+08:00"},{"@type":"WebSite","@id":"https:\/\/mayanknauni.com\/#website","url":"https:\/\/mayanknauni.com\/","name":"Cloud Whisperer","description":"Taming the Digital Dragon","inLanguage":"en-US","publisher":{"@id":"https:\/\/mayanknauni.com\/#person"}}]},"og:locale":"en_US","og:site_name":"Cloud Whisperer \u2013 Taming the Digital Dragon","og:type":"article","og:title":"Network Automation with Ansible \u2013 Playbook Cloud Whisperer","og:description":"Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have","og:url":"https:\/\/mayanknauni.com\/?p=100","og:image":"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2023\/08\/cropped-cropped-Blue-and-Green-Modern-Technology-Logo.png?fit=333%2C342&#038;ssl=1","og:image:secure_url":"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2023\/08\/cropped-cropped-Blue-and-Green-Modern-Technology-Logo.png?fit=333%2C342&#038;ssl=1","article:published_time":"2019-07-01T04:06:44+00:00","article:modified_time":"2019-07-01T05:04:16+00:00","twitter:card":"summary_large_image","twitter:title":"Network Automation with Ansible \u2013 Playbook Cloud Whisperer","twitter:description":"Use of Ansible Playbook for fetching information from network devices for troubleshooting purpose Playbooks for Fetching Output: We can use playbooks as well to fetch the information from the remote devices. The difference between Ad-hoc commands and playbook is that with Ad-Hoc we can pass a single ios command, where as a playbook can have","twitter:image":"https:\/\/i0.wp.com\/mayanknauni.com\/wp-content\/uploads\/2023\/08\/cropped-cropped-Blue-and-Green-Modern-Technology-Logo.png?fit=333%2C342&ssl=1"},"aioseo_meta_data":{"post_id":"100","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-04-28 04:21:49","updated":"2025-08-04 08:28:05","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/mayanknauni.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/mayanknauni.com\/?cat=4\" title=\"NetDevOps\">NetDevOps<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tNetwork Automation with Ansible \u2013 Playbook\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/mayanknauni.com"},{"label":"NetDevOps","link":"https:\/\/mayanknauni.com\/?cat=4"},{"label":"Network Automation with Ansible \u2013 Playbook","link":"https:\/\/mayanknauni.com\/?p=100"}],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mayanknauni.com\/index.php?rest_route=\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mayanknauni.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mayanknauni.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mayanknauni.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mayanknauni.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":5,"href":"https:\/\/mayanknauni.com\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":113,"href":"https:\/\/mayanknauni.com\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions\/113"}],"wp:attachment":[{"href":"https:\/\/mayanknauni.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mayanknauni.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mayanknauni.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}