{"id":42944,"date":"2023-08-12T14:13:02","date_gmt":"2022-11-17T17:28:58","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/"},"modified":"2024-01-15T11:34:34","modified_gmt":"2024-01-15T03:34:34","slug":"%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/","title":{"rendered":"\u4e09\u5b9d\u796d\u548cansible"},"content":{"rendered":"<p>\u4eca\u5929\u6211\u671f\u5f85\u5df2\u4e45\u7684\u672c\u5730\u7684\u201c\u79cb\u5200\u9b5a\u7bc0\u201d\u6d3b\u52d5\u5f00\u59cb\u4e86\u3002<\/p>\n<p>\u56e0\u4e3a\u4e0b\u96e8\uff0c\u56e0\u4e3a\u53f0\u98ce\uff0c\u5f88\u9057\u61be\u5730\u53d6\u6d88\u4e86\u3002<\/p>\n<p>1000\u6761\u79cb\u5200\u9c7c\u88ab\u5927\u706b\u70e4\u719f\u7684\u76db\u4f1a\uff0c\u5bf9\u4e8e\u79cb\u5200\u9c7c\u6765\u8bf4\u771f\u662f\u4e00\u573a\u4ee4\u4eba\u6050\u60e7\u7684\u8282\u65e5\u3002<\/p>\n<p>\u56e0\u4e3a\u5b69\u5b50\u5728\u4e0b\u96e8\u5929\u88ab\u8feb\u505a\u516c\u6587\uff0c\u6240\u4ee5\u6211\u4e5f\u65e0\u6cd5\u5f00\u7535\u89c6\uff0c\u4e8e\u662f\u5c1d\u8bd5\u4e86\u4e00\u4e0bansible\u3002<br \/>\n\u5728\u90a3\u6837\u7684\u4e00\u4e2a\u661f\u671f\u5929\u65e9\u6668\uff1b<\/p>\n<p>\u9996\u5148\uff0c\u5728\u4e24\u53f0CentOS 6.5\u865a\u62df\u673a\u4e0a\u521b\u5efa\u6d4b\u8bd5\u670d\u52a1\u5668\u3002<\/p>\n<p>\u7531\u4e8eAnsible\u7684\u63a8\u9001\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u5bc6\u94a5\uff0c\u5b9e\u73b0\u670d\u52a1\u5668\u76f4\u63a5\u4e0e\u5ba2\u6237\u7aef\u8fdb\u884c\u53cc\u5411\u901a\u4fe1\u3002<\/p>\n<p>\u7531\u4e8e\u8c8c\u4f3c\u53ef\u4ee5\u4f7f\u7528yum\u4eceEPEL\u5b89\u88c5\uff0c\u6240\u4ee5\u53ef\u4ee5\u5feb\u901f\u65b9\u4fbf\u5730\u4f7f\u7528\u5b83\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nrpm -ivh http:\/\/ftp.riken.jp\/Linux\/fedora\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\r\nsed -i 's\/enabled=1\/enabled=0\/g' \/etc\/yum.repos.d\/epel.repo\r\nyum --enablerepo=epel update epel-release\r\nyum --enablerepo=epel install ansible\r\n<\/code><\/pre>\n<p>\u7248\u672c\u4f3c\u4e4e\u662f\u6700\u65b0\u76841.7\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n[root@ansiblesvr ansible]# ansible --version\r\nansible 1.7\r\n\r\n\r\n[root@ansiblesvr ansible]# python --version\r\nPython 2.6.6\r\n<\/code><\/pre>\n<p>\u25cf\u8bd5\u7740\u8fdb\u884cping\u6d4b\u8bd5<\/p>\n<p>\u7531\u4e8e\u6ca1\u6709\u95ee\u9898\uff0c\u6240\u4ee5\u5c1d\u8bd5\u5bf9\u8fde\u63a5\u7545\u901a\u7684\u8282\u70b9\u8fdb\u884cping\u6d4b\u8bd5\u3002<br \/>\n\u55ef\uff0c\u6211\u5fd8\u4e86\u5199\u914d\u7f6e\u3002<br \/>\nAnsible\u670d\u52a1\u5668<br \/>\nAnsible\u5ba2\u6237\u7aef<br \/>\n\u5c31\u50cf\u540d\u5b57\u6240\u793a\u7684\u3002<\/p>\n<p>\u636e\u8bf4\u53ef\u4ee5\u4eceansiblesvr\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884cping\uff0c\u4f46\u662f\u5931\u8d25\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n[root@ansiblesvr ansible]# ansible ansibletest -m ping\r\nNo hosts matched\r\n<\/code><\/pre>\n<p>\u9700\u8981\u5bf9\u4e3b\u673a\u8fdb\u884c&#8221;\u6e05\u5355\u6587\u4ef6&#8221;\u7684\u5b9a\u4e49\u3002<\/p>\n<p>\u8fd9\u770b\u8d77\u6765\u50cf\u4e00\u4e2a\u6a21\u677f\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n[root@ansiblesvr ansible]# head -25 \/etc\/ansible\/hosts\r\n# This is the default ansible 'hosts' file.\r\n#\r\n# It should live in \/etc\/ansible\/hosts\r\n#\r\n# - Comments begin with the '#' character\r\n# - Blank lines are ignored\r\n# - Groups of hosts are delimited by [header] elements\r\n# - You can enter hostnames or ip addresses\r\n# - A hostname\/ip can be a member of multiple groups\r\n\r\n# Ex 1: Ungrouped hosts, specify before any group headers.\r\n\r\ngreen.example.com\r\nblue.example.com\r\n192.168.100.1\r\n192.168.100.10\r\n\r\n# Ex 2: A collection of hosts belonging to the 'webservers' group\r\n\r\n[webservers]\r\nalpha.example.org\r\nbeta.example.org\r\n192.168.1.100\r\n192.168.1.110\r\n<\/code><\/pre>\n<p>\u8fd9\u6b21\u6211\u53ea\u4f1a\u5199\u4e0b\u9700\u8981\u7684\u4e1c\u897f\u6765\u8fdb\u884c\u5c1d\u8bd5\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n[root@ansiblesvr ansible]# cat \/etc\/ansible\/hosts\r\n[testwebserver]\r\nansibleclient\r\n192.168.1.2\r\n<\/code><\/pre>\n<p>\u5e73<\/p>\n<pre class=\"post-pre\"><code>\r\n[root@ansiblesvr ansible]# ansible ansibleclient -m ping\r\nansibleclient | success &gt;&gt; {\r\n\"changed\": false,\r\n\"ping\": \"pong\"\r\n}\r\n<\/code><\/pre>\n<p>\u4e52\u4e52\u4e53\u4e53\uff01\u597d\u7684\uff0c\u5c31\u8fd9\u6837\uff01<\/p>\n<p>\u4efb\u4f55\u547d\u4ee4\u90fd\u53ef\u4ee5<\/p>\n<pre class=\"post-pre\"><code>\r\n[root@ansiblesvr ansible]# ansible ansibleclient -a 'cat \/etc\/redhat-release'\r\nansibleclient | success | rc=0 &gt;&gt;\r\nCentOS release 6.5 (Final)\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u25b2\u5b66\u4e60\uff1a\u53ef\u5c06\u76ee\u6807\u4e3b\u673a\u5199\u5165\u6e05\u5355\u6587\u4ef6(\/etc\/ansible\/hosts)\u4e2d<\/p>\n<p>\u4f3c\u4e4e\u9700\u8981\u4e00\u672c\u540d\u4e3a\u201cplay book\u201d\u7684\u4e1c\u897f\uff0c\u4f46\u6211\u662f\u4e00\u4e2a\u8bd5\u9519\u6d3e\uff0c\u6240\u4ee5\u8bd5\u4e86\u4e00\u6b21\uff0c\u7ed3\u679c\u6210\u529f\u5b89\u88c5\u4e86Apache\u54c8\u54c8\u3002\u770b\u6765play book\u91cc\u5df2\u7ecf\u6709Apache\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n[root@ansiblesvr ansible]# ansible ansibleclient -m yum -s -a name=httpd\r\nansibleclient | success &gt;&gt; {\r\n\"changed\": true,\r\n\"msg\": \"\",\r\n\"rc\": 0,\r\n\"results\": [\r\n\"Loaded plugins: fastestmirror\\nLoading mirror speeds from cached hostfile\\n * base: www.ftp.ne.jp\\n * extras: www.ftp.ne.jp\\n * updates: ftp.tsukuba.wide.ad.jp\\nSetting up Install Process\\nResolving Dependencies\\n--&gt; Running transaction check\\n---&gt; Package httpd.x86_64 0:2.2.15-31.el6.centos will be installed\\n--&gt; Finished Dependency Resolution\\n\\nDependencies Resolved\\n\\n================================================================================\\n Package Arch Version Repository Size\\n================================================================================\\nInstalling:\\n httpd x86_64 2.2.15-31.el6.centos updates 824 k\\n\\nTransaction Summary\\n================================================================================\\nInstall 1 Package(s)\\n\\nTotal download size: 824 k\\nInstalled size: 2.9 M\\nDownloading Packages:\\nRunning rpm_check_debug\\nRunning Transaction Test\\nTransaction Test Succeeded\\nRunning Transaction\\n\\r Installing : httpd-2.2.15-31.el6.centos.x86_64 1\/1 \\n\\r Verifying : httpd-2.2.15-31.el6.centos.x86_64 1\/1 \\n\\nInstalled:\\n httpd.x86_64 0:2.2.15-31.el6.centos \\n\\nComplete!\\n\"\r\n]\r\n}\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>\r\n[root@ansibleclient ~]# \/etc\/init.d\/httpd status\r\n<\/code><\/pre>\n<p>Apache \u670d\u52a1\u5df2\u7ecf\u505c\u6b62\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n[root@ansibleclient ~]# tail \/var\/log\/yum.log\r\nAug 31 16:25:04 Installed: ack-2.12-2.el6.noarch\r\nAug 31 16:29:51 Installed: python-psutil-0.6.1-1.el6.x86_64\r\nAug 31 16:29:51 Installed: python-setuptools-0.6.10-3.el6.noarch\r\nAug 31 16:29:51 Installed: glances-1.7.4-1.el6.noarch\r\nOct 05 11:05:42 Installed: yum-utils-1.1.30-17.el6_5.noarch\r\nOct 05 11:05:46 Installed: httpd-2.2.15-31.el6.centos.x86_64\r\n<\/code><\/pre>\n<p>\u8fd8\u662f\u5e8f\u7ae0\uff0c\u4f46\u5230\u8fd9\u91cc\u8fd8\u6ca1\u4ec0\u4e48\u8fdb\u5c55\u3002<br \/>\n\u4e4b\u540e\u6211\u4f1a\u5728play book\u4e0a\u5199\u70b9\u4e1c\u897f\uff0c\u8bd5\u8bd5\u770b\u611f\u89c9\u5982\u4f55\u3002<br \/>\n\u5988\u5988\u53eb\u6211\u53bb\u8d2d\u7269\uff0c\u6211\u5c31\u5148\u53bb\u4e86&gt;&lt;<br \/>\n\u7ed3\u679c\u53ea\u80fd\u73a9\u4e86\u4e00\u4e2a\u5c0f\u65f6\u5de6\u53f3\u3002\u4e0b\u6b21\u7ee7\u7eed\u3002<\/p>\n<p>\u25cf\u83b7\u53d6\u4e3b\u673a\u4fe1\u606f<\/p>\n<p>\u6d4b\u8bd5ansible -m setup<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6211\u671f\u5f85\u5df2\u4e45\u7684\u672c\u5730\u7684\u201c\u79cb\u5200\u9b5a\u7bc0\u201d\u6d3b\u52d5\u5f00\u59cb\u4e86\u3002 \u56e0\u4e3a\u4e0b\u96e8\uff0c\u56e0\u4e3a\u53f0\u98ce\uff0c\u5f88\u9057\u61be\u5730\u53d6\u6d88\u4e86\u3002 1000\u6761\u79cb\u5200\u9c7c\u88ab\u5927\u706b\u70e4 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42944","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e09\u5b9d\u796d\u548cansible - Blog - Silicon Cloud<\/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:\/\/www.silicloud.com\/zh\/blog\/\u4e09\u5b9d\u796d\u548cansible\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e09\u5b9d\u796d\u548cansible\" \/>\n<meta property=\"og:description\" content=\"\u4eca\u5929\u6211\u671f\u5f85\u5df2\u4e45\u7684\u672c\u5730\u7684\u201c\u79cb\u5200\u9b5a\u7bc0\u201d\u6d3b\u52d5\u5f00\u59cb\u4e86\u3002 \u56e0\u4e3a\u4e0b\u96e8\uff0c\u56e0\u4e3a\u53f0\u98ce\uff0c\u5f88\u9057\u61be\u5730\u53d6\u6d88\u4e86\u3002 1000\u6761\u79cb\u5200\u9c7c\u88ab\u5927\u706b\u70e4 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4e09\u5b9d\u796d\u548cansible\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-17T17:28:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T03:34:34+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/\",\"name\":\"\u4e09\u5b9d\u796d\u548cansible - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-11-17T17:28:58+00:00\",\"dateModified\":\"2024-01-15T03:34:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e09\u5b9d\u796d\u548cansible\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\",\"name\":\"\u6e05, \u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4e09\u5b9d\u796d\u548cansible - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u4e09\u5b9d\u796d\u548cansible\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4e09\u5b9d\u796d\u548cansible","og_description":"\u4eca\u5929\u6211\u671f\u5f85\u5df2\u4e45\u7684\u672c\u5730\u7684\u201c\u79cb\u5200\u9b5a\u7bc0\u201d\u6d3b\u52d5\u5f00\u59cb\u4e86\u3002 \u56e0\u4e3a\u4e0b\u96e8\uff0c\u56e0\u4e3a\u53f0\u98ce\uff0c\u5f88\u9057\u61be\u5730\u53d6\u6d88\u4e86\u3002 1000\u6761\u79cb\u5200\u9c7c\u88ab\u5927\u706b\u70e4 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4e09\u5b9d\u796d\u548cansible\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-17T17:28:58+00:00","article_modified_time":"2024-01-15T03:34:34+00:00","author":"\u6e05, \u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u5b87","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/","name":"\u4e09\u5b9d\u796d\u548cansible - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-11-17T17:28:58+00:00","dateModified":"2024-01-15T03:34:34+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4e09\u5b9d\u796d\u548cansible"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e","name":"\u6e05, \u5b87","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","caption":"\u6e05, \u5b87"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%89%e5%ae%9d%e7%a5%ad%e5%92%8cansible\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=42944"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42944\/revisions"}],"predecessor-version":[{"id":59096,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42944\/revisions\/59096"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}