{"id":42780,"date":"2023-03-27T11:35:06","date_gmt":"2023-12-14T11:07:51","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/"},"modified":"2024-04-29T20:44:53","modified_gmt":"2024-04-29T12:44:53","slug":"%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/","title":{"rendered":"\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u8fd9\u6b21\u662f\u5173\u4e8e\u4f7f\u7528Ansible\u5b89\u88c5New Relic Infrastructure\u4ee3\u7406\u7684\u6545\u4e8b\u3002<\/p>\n<h1>\u80cc\u666f<\/h1>\n<p>\u5728\u4e0d\u4e45\u524d\uff0c\u6211\u4eec\u5728\u516c\u53f8\u4e3e\u529e\u4e86\u4e00\u573a\u5173\u4e8eNew Relic\u7684\u7814\u8ba8\u4f1a\uff08\u5b9e\u8df5\u57f9\u8bad\uff09\u3002\u4e3a\u4e86\u51c6\u5907\u8fd9\u6b21\u6d3b\u52a8\uff0c\u6211\u4eec\u9700\u8981\u51c6\u590720\u81f330\u4eba\u7684\u670d\u52a1\u5668\u73af\u5883\u3002\u5728\u5236\u5b9a\u7814\u8ba8\u4f1a\u7684\u573a\u666f\u65f6\uff0c\u867d\u7136\u6709\u4e00\u4e9b\u57fa\u672c\u8981\u6c42\u548c\u76ee\u6807\uff0c\u4f46\u6211\u4eec\u4f1a\u4e0d\u65ad\u5438\u6536\u597d\u7684\u60f3\u6cd5\uff0c\u56e0\u6b64\u662f\u4e00\u4e2a\u6d41\u52a8\u7684\u8fc7\u7a0b\u3002\u5728\u7ecf\u5e38\u8fdb\u884c\u5e9f\u5f03\u548c\u91cd\u5efa\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6e10\u6e10\u5730\u6211\u4eec\u4f1a\u601d\u8003\u5c06\u7b80\u5355\u7684\u624b\u5de5\u64cd\u4f5c\u81ea\u52a8\u5316\u3002\u8fd9\u65f6\u5c31\u8f6e\u5230Ansible\u767b\u573a\u4e86\u3002<\/p>\n<h1>Ansible \u7684\u5e94\u7528\u573a\u666f<\/h1>\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5b83\u5bf9\u6211\u975e\u5e38\u6709\u5e2e\u52a9\u3002\u5177\u4f53\u7684\u6b65\u9aa4\u5c06\u5728\u540e\u9762\u63d0\u5230\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b New Relic Infrastructure \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">New Relic Infrastructure \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5024\u3092\u81e8\u6a5f\u5fdc\u5909\u306b\u66f8\u304d\u63db\u3048\u308b<\/ul>\n<p>\u5728\u6211\u770b\u6765\uff0c\u5f53\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u5c0f\u7684\u6539\u52a8\uff0c\u6bd4\u5982\u201c\u7d27\u6025\u66f4\u6539\u8bb8\u53ef\u8bc1\u5bc6\u94a5\u201d\u65f6\uff0cAnsible\u975e\u5e38\u65b9\u4fbf\u6613\u7528\u3002\u6bcf\u6b21\u91cd\u65b0\u6784\u5efaAMI\u6709\u70b9\u592a\u8fc7\u5938\u5f20\u4e86\u3002\u867d\u7136\u53ef\u4ee5\u4f7f\u7528CodeDeploy\u6765\u4f7f\u7528AWS\u6267\u884c\u73af\u5883\uff0c\u4f46\u8003\u8651\u5230\u9700\u8981\u7406\u89e3\u5176\u4f7f\u7528\u65b9\u5f0f\u6240\u9700\u7684\u65f6\u95f4\uff0c\u624b\u52a8\u5b89\u88c5\u53ef\u80fd\u66f4\u5feb\uff0c\u8fd9\u662f\u65e0\u53ef\u4e89\u8bae\u7684\u539f\u56e0\uff0c\u6240\u4ee5\u8fd9\u6b21\u6211\u4eec\u653e\u5f03\u4e86\u6b64\u9009\u9879\u3002\u6211\u4f1a\u5728GW\u4e0a\u6162\u6162\u8003\u8651\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<h1>\u6b65\u9aa4<\/h1>\n<h2>\u7b80\u8ff0<\/h2>\n<p>\u4f7f\u7528Ansible\u81ea\u52a8\u5316\u65b0\u7684Relic\u57fa\u7840\u7ed3\u6784\u4ee3\u7406\u7684\u624b\u52a8\u5b89\u88c5\u6b65\u9aa4\u3002<\/p>\n<h2>\u5b89\u88c5 Ansible<\/h2>\n<pre class=\"post-pre\"><code># yum install ansible\r\n# ansible --version\r\nansible 2.3.0.0\r\n  config file = \/etc\/ansible\/ansible.cfg\r\n  configured module search path = Default w\/o overrides\r\n  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]\r\n#\r\n<\/code><\/pre>\n<h2>\u4e3b\u673a\u6587\u4ef6\u7684\u8bbe\u7f6e<\/h2>\n<pre class=\"post-pre\"><code># vi \/etc\/ansible\/hosts\r\n<\/code><\/pre>\n<p>XX.XX.XX.XX \u662f EC2 \u7684IP\u5730\u5740\uff08\u516c\u6709\u6216\u5f39\u6027\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>[infrastructure]\r\nXX.XX.XX.XX ansible_ssh_user=ec2-user ansible_ssh_private_key_file=[EC2\u306e\u9375\u306e\u30d1\u30b9]\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4\u758f\u901a<\/h2>\n<pre class=\"post-pre\"><code># ansible all -m ping\r\nXX.XX.XX.XX | SUCCESS =&gt; {\r\n    \"changed\": false,\r\n    \"ping\": \"pong\"\r\n}\r\n#\r\n<\/code><\/pre>\n<p>\u5982\u679c\u51fa\u73b0 &#8220;Unreachable!&#8221; \u7684\u63d0\u793a\uff0c\u9996\u5148\u8981\u786e\u8ba4EC2\u662f\u5426\u80fd\u591f\u8054\u901a\uff0c\u5982\u679c\u6ca1\u6709\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u6000\u7591hosts\u7684\u63cf\u8ff0\u662f\u5426\u6b63\u786e\uff08\u4f8b\u5982EC2\u5bc6\u94a5\u7684\u8def\u5f84\u3001\u6743\u9650\u7b49\uff09\u3002<\/p>\n<h2>\u5bf9Ansible\u7684\u53ef\u7528\u6027\u8fdb\u884c\u6d4b\u8bd5<\/h2>\n<p>\u5982\u679c\u8fdb\u5c55\u987a\u5229\uff0c\u5c31\u80fd\u591f\u4f7f\u7528Ansible\u3002<\/p>\n<pre class=\"post-pre\"><code># ansible infrastructure -a \"\/bin\/date\"\r\n13.112.244.194 | SUCCESS | rc=0 &gt;&gt;\r\nTue Apr 25 02:43:21 UTC 2017\r\n\r\n#\r\n<\/code><\/pre>\n<h2>\u5267\u672c (j\u00f9<\/h2>\n<p>New Relic \u63d0\u4f9b\u4e86\u793a\u4f8b\u3002\uff08\u53c2\u8003\uff1a\u8fd9\u91cc \u548c Github\uff09<\/p>\n<p>\u4f46\u662f\uff0c\u8fd9\u6b21\u6211\u81ea\u5df1\u5236\u4f5c\u4e86\u3002\u7531\u4e8e\u6211\u5bf9Ansible\u7684\u719f\u7ec3\u7a0b\u5ea6\u4ec5\u4ec5\u662f\u4eca\u5929\u7b2c\u4e00\u6b21\u63a5\u89e6\uff0c\u6240\u4ee5\u6ca1\u6709\u65f6\u95f4\u6765\u638c\u63e1\u4f7f\u7528\u65b9\u6cd5\uff0c\u8fd9\u662f\u4e00\u4e2a\u65e0\u6cd5\u62b5\u8d56\u7684\u60c5\u51b5\u3002\u5173\u4e8e\u8be6\u7ec6\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5c06\u6210\u4e3a\u4ee5\u540e\u7684\u8bfe\u9898\u3002<\/p>\n<h3>\u6e38\u620f\u518c\uff08infra_agent_install.yml\uff09<\/h3>\n<pre class=\"post-pre\"><code># cat infra_agent_install.yml\r\n---\r\n- hosts: infrastructure\r\n  sudo: yes\r\n  tasks:\r\n  - name: install config file\r\n    template: src=newrelic-infra.yml dest=\/etc\/newrelic-infra.yml\r\n  - name: repo update\r\n    command: curl -o \/etc\/yum.repos.d\/newrelic-infra.repo https:\/\/download.newrelic.com\/infrastructure_agent\/linux\/yum\/el\/6\/x86_64\/newrelic-infra.repo\r\n  - name: repo\r\n    command: yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'\r\n  - name: install\r\n    command: yum install newrelic-infra -y\r\n#\r\n<\/code><\/pre>\n<h3>\u8a2d\u5b9a\u6a94\u6848(newrelic-infra.yml)<\/h3>\n<p>\u5f53\u8bbe\u7f6e\u6587\u4ef6(newrelic-infra.yml)\u53ea\u5305\u542b\u8bb8\u53ef\u8bc1\u5bc6\u94a5\u3002\u5982\u679c\u8bb8\u53ef\u8bc1\u5bc6\u94a5\u53d1\u751f\u53d8\u5316\uff0c\u9700\u8981\u4fee\u6539\u8bbe\u7f6e\u6587\u4ef6\u5e76\u91cd\u65b0\u6267\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code># cat newrelic-infra.yml\r\nlicense_key:   &lt;\u30e9\u30a4\u30bb\u30f3\u30b9\u30ad\u30fc\u3092\u8a18\u8f09&gt;\r\n#\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4\u52a8\u4f5c\u5e76\u6267\u884c<\/h2>\n<h3>\u5728\u6267\u884c\u4e4b\u524d\uff0c\u8bf7\u786e\u4fddPlaybook\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u3002<\/h3>\n<pre class=\"post-pre\"><code># ansible-playbook -i hosts infra_agent_install.yml --syntax-check\r\n<\/code><\/pre>\n<h3>\u6267\u884c<\/h3>\n<pre class=\"post-pre\"><code># ansible-playbook -i hosts infra_agent_install.yml\r\n[DEPRECATION WARNING]: Instead of sudo\/sudo_user, use become\/become_user and mak\r\nThis feature will be removed in\r\na future release. Deprecation warnings can be disabled by setting deprecation_wa\r\n\r\nPLAY [infrastructure] **********************************************************\r\n\r\nTASK [Gathering Facts] *********************************************************\r\nok: [XX.XX.XX.XX]\r\n\r\nTASK [install config file] *****************************************************\r\nchanged: [XX.XX.XX.XX]\r\n\r\nTASK [repo update] *************************************************************\r\n [WARNING]: Consider using get_url or uri module rather than running curl\r\n\r\nchanged: [XX.XX.XX.XX]\r\n\r\nTASK [repo] ********************************************************************\r\n [WARNING]: Consider using yum module rather than running yum\r\n\r\nchanged: [XX.XX.XX.XX]\r\n\r\nTASK [install] *****************************************************************\r\nchanged: [XX.XX.XX.XX]\r\n\r\nPLAY RECAP *********************************************************************\r\nXX.XX.XX.XX              : ok=5    changed=4    unreachable=0    failed=0\r\n\r\n#\r\n<\/code><\/pre>\n<p>EC2\u5b9e\u4f8b\u5df2\u6210\u529f\u5b89\u88c5\u4e86New Relic Infrastructure\u4ee3\u7406\u3002\u867d\u7136\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u5f3a\u5236\u6027\u64cd\u4f5c\uff0c\u4f46\u76ee\u6807\u5df2\u7ecf\u8fbe\u5230\u3002\u5f53\u9700\u8981\u66f4\u6539\u6388\u6743\u5bc6\u94a5\u65f6\uff0c\u53ea\u9700\u4fee\u6539\u914d\u7f6e\u6587\u4ef6(newrelic-infra.yml)\uff0c\u7136\u540e\u91cd\u65b0\u8fd0\u884cansible-playbook\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d4ed437434c4406cc1cc4\/37-0.png\" alt=\"2.png\" \/><\/div>\n<h1>\u53ef\u80fd\u4f1a\u4e0a\u763e\u7684\u5730\u65b9<\/h1>\n<p>\u91cd\u65b0\u521b\u5efa EC2 \u5b9e\u4f8b\u4e4b\u540e\uff0c\u5e38\u5e38\u4f1a\u9047\u5230\u8eab\u4efd\u9a8c\u8bc1\u9519\u8bef\u7684\u60c5\u51b5\u3002\u8bf7\u6267\u884c &#8220;ssh-keygen -R&#8221; \u547d\u4ee4\u3002<\/p>\n<p>\u4ee5\u4e0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u8fd9\u6b21\u662f\u5173\u4e8e\u4f7f\u7528Ansible\u5b89\u88c5New Relic Infrastructure\u4ee3\u7406\u7684\u6545\u4e8b\u3002 \u80cc\u666f \u5728\u4e0d [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42780","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>\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406 - 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\/\u4f7f\u7528ansible\u8fdb\u884cnew-relic-infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u8fd9\u6b21\u662f\u5173\u4e8e\u4f7f\u7528Ansible\u5b89\u88c5New Relic Infrastructure\u4ee3\u7406\u7684\u6545\u4e8b\u3002 \u80cc\u666f \u5728\u4e0d [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ansible\u8fdb\u884cnew-relic-infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-14T11:07:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T12:44:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d4ed437434c4406cc1cc4\/37-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\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, \u626c\" \/>\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%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/\",\"name\":\"\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-14T11:07:51+00:00\",\"dateModified\":\"2024-04-29T12:44:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406\"}]},{\"@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\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406 - 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\/\u4f7f\u7528ansible\u8fdb\u884cnew-relic-infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406","og_description":"\u9996\u5148 \u8fd9\u6b21\u662f\u5173\u4e8e\u4f7f\u7528Ansible\u5b89\u88c5New Relic Infrastructure\u4ee3\u7406\u7684\u6545\u4e8b\u3002 \u80cc\u666f \u5728\u4e0d [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ansible\u8fdb\u884cnew-relic-infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-14T11:07:51+00:00","article_modified_time":"2024-04-29T12:44:53+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d4ed437434c4406cc1cc4\/37-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/","name":"\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-14T11:07:51+00:00","dateModified":"2024-04-29T12:44:53+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Ansible\u8fdb\u884cNew Relic Infrastructure\u4ee3\u7406\u914d\u7f6e\u7ba1\u7406"}]},{"@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\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e8%bf%9b%e8%a1%8cnew-relic-infrastructure%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42780","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=42780"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42780\/revisions"}],"predecessor-version":[{"id":87545,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42780\/revisions\/87545"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}