{"id":6010,"date":"2025-01-25T05:49:06","date_gmt":"2025-01-25T05:49:06","guid":{"rendered":"https:\/\/linuxbuz.com\/?p=6010"},"modified":"2025-07-11T04:49:57","modified_gmt":"2025-07-11T04:49:57","slug":"ansible-ad-hoc-command-examples","status":"publish","type":"post","link":"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples","title":{"rendered":"How to Manage Multiple Servers using Ansible Ad-Hoc Commands"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"https:\/\/www.ansible.com\/\" target=\"_blank\" rel=\"noopener\"><strong>Ansible<\/strong><\/a> is a powerful automation tool that allows you to manage and configure multiple systems efficiently. While playbooks offer a robust way to automate tasks, sometimes you need to perform quick, one-off tasks across a set of machines. This is where Ansible ad hoc commands come into play.<\/p>\n<p style=\"text-align: justify;\">Ansible ad hoc commands are simple one-liners that allow you to perform tasks across multiple servers without writing a playbook. They are useful for quick tasks, troubleshooting, or running commands across a set of hosts.<\/p>\n<p style=\"text-align: justify;\"><em>In this guide, we&#8217;ll explore how to use Ansible ad hoc commands with practical examples.<\/em><\/p>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#001a66;border-radius:3px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#004d99;color:#FFFFFF;border-top-left-radius:1px;border-top-right-radius:1px\">\ud83d\udca1 Recommended Reading<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:1px;border-bottom-right-radius:1px\">\n\ud83d\udc49 <a href=\"https:\/\/linuxbuz.com\/linuxhowto\/how-to-get-free-cloud-vps-server-step-by-step-guide\" target=\"_blank\" rel=\"noopener\">How to Get a Free Cloud Server for Testing<\/a><br \/>\n<\/div><\/div>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Basic_Syntax\" >Basic Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Common_Modules_Used_in_Ad_Hoc_Commands\" >Common Modules Used in Ad Hoc Commands<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Examples_1_Checking_System_Uptime\" >Examples 1: Checking System Uptime<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Example_2_Managing_Users\" >Example 2: Managing Users<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Example_3_Managing_Packages\" >Example 3: Managing Packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Example_4_Copying_Files\" >Example 4: Copying Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Example_5_Managing_Services\" >Example 5: Managing Services<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Example_6_Gathering_Facts\" >Example 6: Gathering Facts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Example_7_Running_Complex_Shell_Commands\" >Example 7: Running Complex Shell Commands<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Example_8_Checking_Disk_Space_Usage\" >Example 8: Checking Disk Space Usage<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Example_9_Creating_Directories_with_Specific_Permissions\" >Example 9: Creating Directories with Specific Permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxbuz.com\/devops\/ansible-ad-hoc-command-examples\/#FAQs\" >FAQs<\/a><\/li><\/ul><\/nav><\/div>\n\n<h2><span class=\"ez-toc-section\" id=\"Basic_Syntax\"><\/span>Basic Syntax<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">The basic syntax of using ad hoc commands in Ansible is as follows:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible host-pattern -m module -a \"module-arguments\" [options]<\/code><\/pre>\n<p><strong>Explanation<\/strong>:<\/p>\n<ul>\n<li><strong>host-pattern:<\/strong> Specifies the target hosts.<\/li>\n<li><strong>-m module:<\/strong> Specifies the module to use.<\/li>\n<li><strong>-a &#8220;module-arguments&#8221;:<\/strong> Specifies the module arguments.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Common_Modules_Used_in_Ad_Hoc_Commands\"><\/span>Common Modules Used in Ad Hoc Commands<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Here are some commonly used modules in ad hoc commands:<\/p>\n<ul>\n<li><strong>ping:<\/strong> Checks the connectivity to the hosts.<\/li>\n<li><strong>command:<\/strong> Runs commands on the remote hosts.<\/li>\n<li><strong><a href=\"https:\/\/linuxbuz.com\/devops\/ansible-shell-module\" target=\"_blank\" rel=\"noopener\">shell<\/a>:<\/strong> Runs shell commands on the remote hosts.<\/li>\n<li><strong><a href=\"https:\/\/linuxbuz.com\/devops\/ansible-copy-module-examples\" target=\"_blank\" rel=\"noopener\">copy<\/a>:<\/strong> Copies files to the remote hosts.<\/li>\n<li><strong><a href=\"https:\/\/linuxbuz.com\/devops\/ansible-user-module\" target=\"_blank\" rel=\"noopener\">user<\/a>:<\/strong> Manages users on the remote hosts.<\/li>\n<li><strong><a href=\"https:\/\/linuxbuz.com\/devops\/ansible-yum-module-examples\" target=\"_blank\" rel=\"noopener\">yum<\/a>, <a href=\"https:\/\/linuxbuz.com\/devops\/ansible-apt-module-example\" target=\"_blank\" rel=\"noopener\">apt<\/a>:<\/strong> Manages packages on the remote hosts.<\/li>\n<li><strong><a href=\"https:\/\/linuxbuz.com\/devops\/ansible-service-module\" target=\"_blank\" rel=\"noopener\">service<\/a>:<\/strong> Manages services on the remote hosts.<\/li>\n<li style=\"text-align: justify;\"><strong><a href=\"https:\/\/linuxbuz.com\/devops\/ansible-facts-example\" target=\"_blank\" rel=\"noopener\">setup<\/a>:<\/strong> Gather facts about the remote hosts.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Examples_1_Checking_System_Uptime\"><\/span>Examples 1: Checking System Uptime<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">You can quickly check the system uptime on all your hosts using the <strong>command<\/strong> module:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m command -a \"uptime\"<\/code><\/pre>\n<p>Output.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-268\" src=\"https:\/\/code2devops.com\/wp-content\/uploads\/2024\/11\/check-system-uptime-with-ansible-ad-hoc-command.png\" alt=\"check-system-uptime-with-ansible-ad-hoc-command\" width=\"807\" height=\"143\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Example_2_Managing_Users\"><\/span>Example 2: Managing Users<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To <a href=\"https:\/\/linuxbuz.com\/devops\/ansible-user-module\" target=\"_blank\" rel=\"noopener\"><strong>add a new user<\/strong><\/a> to all your hosts, use the <strong>user<\/strong> module:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m user -a \"name=johndoe state=present\"<\/code><\/pre>\n<p>Output:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto;\"><code>host1 | SUCCESS = {\r\n    \"changed\": true,\r\n    \"name\": \"johndoe\"\r\n}\r\nhost2 | SUCCESS = {\r\n    \"changed\": true,\r\n    \"name\": \"johndoe\"\r\n}<\/code><\/pre>\n<p>To delete a user, use the <strong>state=absent<\/strong> option:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m user -a \"name=johndoe state=absent\"<\/code><\/pre>\n<p>Output.<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto;\"><code>host1 | SUCCESS = {\r\n    \"changed\": true,\r\n    \"name\": \"johndoe\"\r\n}\r\nhost2 | SUCCESS = {\r\n    \"changed\": true,\r\n    \"name\": \"johndoe\"\r\n}<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Example_3_Managing_Packages\"><\/span>Example 3: Managing Packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install a package on all your hosts using the <strong>yum module<\/strong> (for RHEL-based systems):<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m yum -a \"name=httpd state=present\"<\/code><\/pre>\n<p>For Debian-based systems, use the <strong>apt<\/strong> module:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m apt -a \"name=nginx state=present\"<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Example_4_Copying_Files\"><\/span>Example 4: Copying Files<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To copy a file from your local machine to all your hosts:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m copy -a \"src=\/tmp\/apache.conf dest=\/etc\/apache2\/\"<\/code><\/pre>\n<p style=\"text-align: justify;\">This command copies an <strong>apache.conf<\/strong> file from your local machine to <strong>\/etc\/apache2\/<\/strong> directory on all remote servers.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Example_5_Managing_Services\"><\/span>Example 5: Managing Services<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To <a href=\"https:\/\/linuxbuz.com\/devops\/ansible-systemd-module-examples\" target=\"_blank\" rel=\"noopener\"><strong>start a service<\/strong><\/a> on all your hosts:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m service -a \"name=httpd state=started\"<\/code><\/pre>\n<p>This command starts an Apache service on all remote hosts.<\/p>\n<p>To stop an Apache service, use the <strong>state=stopped<\/strong> option.<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m service -a \"name=httpd state=stopped\"<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Example_6_Gathering_Facts\"><\/span>Example 6: Gathering Facts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To gather and display facts about your hosts, use the setup module.<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m setup<\/code><\/pre>\n<p>This command will output detailed information about each host, including hardware, network, and OS details.<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto;\"><code>host1 | SUCCESS = {\r\n    \"ansible_facts\": {\r\n        \"ansible_all_ipv4_addresses\": [\r\n            \"192.168.1.10\"\r\n        ],\r\n        \"ansible_all_ipv6_addresses\": [],\r\n        \"ansible_architecture\": \"x86_64\",\r\n        \"ansible_bios_date\": \"04\/01\/2020\",\r\n        ...\r\n    },\r\n    \"changed\": false\r\n}\r\nhost2 | SUCCESS = {\r\n    \"ansible_facts\": {\r\n        \"ansible_all_ipv4_addresses\": [\r\n            \"192.168.1.11\"\r\n        ],\r\n        \"ansible_all_ipv6_addresses\": [],\r\n        \"ansible_architecture\": \"x86_64\",\r\n        \"ansible_bios_date\": \"04\/01\/2020\",\r\n        ...\r\n    },\r\n    \"changed\": false\r\n}<\/code><\/pre>\n<p>To gather only the <strong>IP address<\/strong> facts, you can filter the output using the <strong>setup<\/strong> module:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m setup -a 'filter=ansible_all_ipv4_addresses'<\/code><\/pre>\n<p>Output.<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto;\"><code>host1 | SUCCESS = {\r\n    \"ansible_facts\": {\r\n        \"ansible_all_ipv4_addresses\": [\r\n            \"192.168.1.10\"\r\n        ]\r\n    },\r\n    \"changed\": false\r\n}\r\nhost2 | SUCCESS = {\r\n    \"ansible_facts\": {\r\n        \"ansible_all_ipv4_addresses\": [\r\n            \"192.168.1.11\"\r\n        ]\r\n    },\r\n    \"changed\": false\r\n}<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Example_7_Running_Complex_Shell_Commands\"><\/span>Example 7: Running Complex Shell Commands<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Suppose you want to find and delete log files older than 7 days. You can use the <strong>shell module<\/strong> to execute this command:<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m shell -a 'find \/var\/log -type f -name \"*.log\" -mtime +7 -exec rm -f {} \\;'<\/code><\/pre>\n<p>Output.<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto;\"><code>host1 | SUCCESS | rc=0 \r\nhost2 | SUCCESS | rc=0 <\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Example_8_Checking_Disk_Space_Usage\"><\/span>Example 8: Checking Disk Space Usage<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To check disk space usage on all hosts, use the <strong>shell<\/strong> module with <strong>&#8220;df -h&#8221;<\/strong> command.<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m shell -a 'df -h'<\/code><\/pre>\n<p>Output.<\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto;\"><code>host1 | SUCCESS | rc=0 \r\nFilesystem      Size  Used Avail Use% Mounted on\r\n\/dev\/sda1        50G   20G   28G  42% \/\r\n...\r\nhost2 | SUCCESS | rc=0 \r\nFilesystem      Size  Used Avail Use% Mounted on\r\n\/dev\/sda1        50G   15G   33G  31% \/<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Example_9_Creating_Directories_with_Specific_Permissions\"><\/span>Example 9: Creating Directories with Specific Permissions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a directory with specific permissions, use the <strong>file module.<\/strong><\/p>\n<pre style=\"background-color: #262626; color: white; border-radius: 7px; overflow: auto; line-height: 2.4; padding: 7px;\"><code><span style=\"color: #c4c1c0; user-select: none;\"> # <\/span>ansible all -m file -a \"path=\/data\/test state=directory mode=0755\"<\/code><\/pre>\n<p>This command creates a directory at <strong>\/data\/test<\/strong> on all targeted hosts, setting its permissions to <strong>0755.<\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Ansible ad hoc commands are a powerful way to quickly perform tasks across multiple hosts without writing a playbook. They are particularly useful for troubleshooting, system administration, and performing quick tasks. By understanding the basic syntax and commonly used modules, you can leverage the full potential of Ansible ad hoc commands in your daily operations.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n        <section class=\"sc_fs_faq sc_card \">\n            <div>\n\t\t\t\t<h6>1. Can I run an ad-hoc command as a specific user?<\/h6>                <div>\n\t\t\t\t\t                    <p>\n\t\t\t\t\t\tYes, you can run ad-hoc commands as a specific user by adding the <strong>-u username<\/strong> option. You can also use <strong>--become<\/strong> to execute the command with elevated privileges.                    <\/p>\n                <\/div>\n            <\/div>\n        <\/section>\n\t\t        <section class=\"sc_fs_faq sc_card \">\n            <div>\n\t\t\t\t<h6>2. How can I execute an ad-hoc command on a specific host?<\/h6>                <div>\n\t\t\t\t\t                    <p>\n\t\t\t\t\t\tYou can target a specific host by specifying its name in the ad-hoc command, like <strong>ansible hostname -m module<\/strong>.                    <\/p>\n                <\/div>\n            <\/div>\n        <\/section>\n\t\t\n<script type=\"application\/ld+json\">\n    {\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"1. Can I run an ad-hoc command as a specific user?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"Yes, you can run ad-hoc commands as a specific user by adding the <strong>-u username<\/strong> option. You can also use <strong>--become<\/strong> to execute the command with elevated privileges.\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"2. How can I execute an ad-hoc command on a specific host?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"You can target a specific host by specifying its name in the ad-hoc command, like <strong>ansible hostname -m module<\/strong>.\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t    ]\n}\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Ansible is a powerful automation tool that allows you to manage and configure multiple systems efficiently. While playbooks offer a robust way to automate tasks, sometimes you need to perform &hellip; <\/p>\n","protected":false},"author":1,"featured_media":6011,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"two_page_speed":[],"footnotes":""},"categories":[828],"tags":[],"class_list":["post-6010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/posts\/6010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/comments?post=6010"}],"version-history":[{"count":4,"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/posts\/6010\/revisions"}],"predecessor-version":[{"id":6668,"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/posts\/6010\/revisions\/6668"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/media\/6011"}],"wp:attachment":[{"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/media?parent=6010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/categories?post=6010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxbuz.com\/wp-json\/wp\/v2\/tags?post=6010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}