{"id":42345,"date":"2023-01-26T18:09:19","date_gmt":"2023-09-13T17:04:34","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/"},"modified":"2024-04-29T11:35:10","modified_gmt":"2024-04-29T03:35:10","slug":"%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/","title":{"rendered":"\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528"},"content":{"rendered":"<p>\u5982\u679c\u60f3\u8981\u5728\u4f01\u4e1a\u4e2d\u6258\u7ba1\u7684GitHub Enterprise\u4e2d\u4f7f\u7528\u6765\u81ea\u591a\u4e2aPlaybook\u5b58\u50a8\u5e93\u7684\u53c2\u8003\u5e76\u5229\u7528\u5176\u4e2d\u7684\u81ea\u5b9a\u4e49\u89d2\u8272\uff0c\u8bf7\u53c2\u8003\u4ee5\u4e0b\u63d0\u793a\u3002<\/p>\n<p>\u4e0d\u4ec5\u4ec5\u662fGitHub\u4f01\u4e1a\u7248\uff0c\u6211\u8ba4\u4e3a\u5728\u5176\u4ed6\u57fa\u4e8egit\u7684\u8f6f\u4ef6\u914d\u7f6e\u7ba1\u7406\uff08SCM\uff09\u4e2d\uff0c\u6bd4\u5982GitLab\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u540c\u6837\u7684\u65b9\u6cd5\uff08\u672a\u7ecf\u6838\u5b9e\uff09\u3002<\/p>\n<h1>\u592a\u9577\u6c92\u6642\u9593\u770b<\/h1>\n<p>\u521b\u5efa\u4e00\u4e2a\u9700\u8981\u5b89\u88c5\u7684\u89d2\u8272\u5217\u8868 requirements.yml\u3002<\/p>\n<pre class=\"post-pre\"><code>- src: git@github.example.com:yassan\/ansible-role-ping.git\r\n  scm: git\r\n  version: v1.0  # master \u3067\u3082OK\r\n  name: ping\r\n<\/code><\/pre>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code>ansible-galaxy install -v -r requirements.yml\r\n<\/code><\/pre>\n<div>\u5982\u679c\u60f3\u8981\u66f4\u6539\u5b89\u88c5\u8def\u5f84\uff0c\u53ef\u4ee5\u5728ansible.cfg\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u8bbe\u7f6e\u3002\u5728[defaults]\u90e8\u5206\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<br \/>\nroles_path=.ansible\/roles\u8bf7\u786e\u4fdd\u5148\u521b\u5efa .ansible\/roles \u6587\u4ef6\u5939\u3002<\/p>\n<\/div>\n<h1>\u73af\u5883<\/h1>\n<p>Ansible\uff1a2.9.27<br \/>\nPython\uff1a3.8<br \/>\n\u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 20.04 LTS<\/p>\n<h1>\u524d\u63d0\u6761\u4ef6<\/h1>\n<p>\u4e8b\u5148\u521b\u5efa\u4ec5\u5305\u542b\u89d2\u8272\u7684\u5b58\u50a8\u5e93\u3002<\/p>\n<p>\u5927\u81f4\u5c31\u662f\u8fd9\u6837\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u8bf7\u53c2\u8003\uff1a\u5982\u4f55\u521b\u5efa\u89d2\u8272<\/h2>\n<p>\u4f7f\u7528ansible-galaxy\u547d\u4ee4\u521b\u5efaRole\u4f1a\u66f4\u52a0\u65b9\u4fbf\uff0c\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5982\u4f55\u4f7f\u7528Role<\/p>\n<p>&nbsp;<\/p>\n<h1>\u673a\u5236 (j\u012b zh\u00ec)<\/h1>\n<p>\u4f7f\u7528ansible-galaxy\u547d\u4ee4\uff0c\u5e76\u6307\u5b9a\u89d2\u8272\u5b58\u50a8\u5e93\u6765\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code>\u276f ansible-galaxy role install --help\r\nusage: ansible-galaxy role install [-h] [-s API_SERVER] [--api-key API_KEY] [-c] [-v] [-f] [-p ROLES_PATH] [-i] [-n | --force-with-deps]\r\n                                   [-r ROLE_FILE] [-g]\r\n                                   [role_name [role_name ...]]\r\n\r\npositional arguments:\r\n  role_name             Role name, URL or tar file\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  -s API_SERVER, --server API_SERVER\r\n                        The Galaxy API server URL\r\n  --api-key API_KEY     The Ansible Galaxy API key which can be found at https:\/\/galaxy.ansible.com\/me\/preferences. You can also set the token\r\n                        for the GALAXY_SERVER_LIST entry.\r\n  -c, --ignore-certs    Ignore SSL certificate validation errors.\r\n  -v, --verbose         verbose mode (-vvv for more, -vvvv to enable connection debugging)\r\n  -f, --force           Force overwriting an existing role or collection\r\n  -p ROLES_PATH, --roles-path ROLES_PATH\r\n                        The path to the directory containing your roles. The default is the first writable one configured via\r\n                        DEFAULT_ROLES_PATH: ~\/.ansible\/roles:\/usr\/share\/ansible\/roles:\/etc\/ansible\/roles\r\n  -i, --ignore-errors   Ignore errors and continue with the next specified role.\r\n  -n, --no-deps         Don't download roles listed as dependencies.\r\n  --force-with-deps     Force overwriting an existing role and its dependencies.\r\n  -r ROLE_FILE, --role-file ROLE_FILE\r\n                        A file containing a list of roles to be imported.\r\n  -g, --keep-scm-meta   Use tar instead of the scm archive option when packaging the role.\r\n<\/code><\/pre>\n<h1>\u7ec6\u8282\u8be6\u8ff0<\/h1>\n<h2>\u6307\u5b9a\u5b89\u88c5\u5148<\/h2>\n<p>\u5982\u679c\u5728ansible-galaxy\u547d\u4ee4\u4e2d\u672a\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\uff0c\u5219\u5b89\u88c5\u5c06\u5728~\/.ansible\/roles\u4e0b\u8fdb\u884c\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528Jenkins\u7b49CI\u5de5\u5177\uff0c\u7531\u4e8e~\/.ansible\/roles\u76ee\u5f55\u4e0d\u552f\u4e00\uff0c\u4f1a\u5bfc\u81f4CI\u4f5c\u4e1a\u73af\u5883\u4e0d\u7a33\u5b9a\uff0c\u56e0\u6b64\u5efa\u8bae\u6dfb\u52a0\u914d\u7f6e\u5230ansible.cfg\uff0c\u5c06\u89d2\u8272\u5b89\u88c5\u5728\u4f7f\u7528Playbook\u7684\u4ee3\u7801\u5e93\u7684.ansible\/role\u6587\u4ef6\u5939\u4e2d\uff08\u5982\u679c\u4e0d\u9700\u8981\u4e5f\u53ef\u4e0d\u6307\u5b9a\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>[defaults]\r\nroles_path=.ansible\/roles\r\n<\/code><\/pre>\n<p>\u8bf7\u5148\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a `.ansible\/roles` \u7684\u6587\u4ef6\u5939\u3002<\/p>\n<p>\u53c2\u8003 Ansible \u914d\u7f6e\u8bbe\u7f6e \u2014\u2014 Ansible \u6587\u6863<\/p>\n<h2>\u521b\u5efa\u4e00\u4e2a\u5e0c\u671b\u5b89\u88c5\u7684\u89d2\u8272\u5217\u8868\u3002<\/h2>\n<p>\u7528\u4ee5\u4e0b\u7684\u683c\u5f0f\u521b\u5efa\u4e00\u4e2a\u540d\u4e3arequirements.yml\u7684\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u60a8\u60f3\u8981\u5b89\u88c5\u7684\u89d2\u8272\u5217\u8868\u3002<\/p>\n<pre class=\"post-pre\"><code>- src: git@github.example.com:yassan\/ansible-role-ping.git\r\n  scm: git\r\n  version: v1.0  # master \u3067\u3082OK\r\n  name: ping\r\n<\/code><\/pre>\n<div>\u5982\u679c\u8981\u6307\u5b9a Version \uff0c\u8bf7\u4e8b\u5148\u5728\u4ed3\u5e93\u4e2d\u521b\u5efa Release \u6807\u7b7e\uff0c\u7136\u540e\u8fdb\u884c\u6307\u5b9a\u3002<\/div>\n<div>\u6211\u4e2a\u4eba\u5efa\u8bae\u5728\u51fa\u73b0\u95ee\u9898\u65f6\uff0c\u660e\u786e\u6307\u5b9a\u4f7f\u7528\u4ec0\u4e48\u72b6\u6001\u7684\u7269\u54c1\u4f1a\u66f4\u65b9\u4fbf\u3002<\/div>\n<p>\u5173\u4e8e\u5217\u8868\u7684\u683c\u5f0f\uff0c\u8fd8\u6709\u5176\u4ed6\u6a21\u5f0f\u53ef\u4f9b\u9009\u62e9\u3002<br \/>\n\u4ece\u6587\u4ef6\u4e2d\u5b89\u88c5\u591a\u4e2a\u89d2\u8272 | \u5b89\u88c5\u5185\u5bb9 \u2014 Ansible\u6587\u6863<\/p>\n<h2>\u89d2\u8272\u7684\u5b89\u88c5<\/h2>\n<p>\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code>ansible-galaxy install -v -r requirements.yml\r\n<\/code><\/pre>\n<p>\u7136\u800c\uff0c\u5982\u679c\u5b89\u88c5\u76f8\u540c\u7684\u7248\u672c\uff0c\u5c06\u4f1a\u88ab\u8df3\u8fc7\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>\u276f ansible-galaxy install -v -r requirements.yml \r\nUsing \/home\/yassan\/repo\/example\/test-ext-role-play\/ansible.cfg as config file\r\n- ping (v1.0) is already installed, skipping.\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u786e\u5b9e\u60f3\u8981\u91cd\u65b0\u5b89\u88c5\uff0c\u8bf7\u52a0\u4e0a -f \u9009\u9879\u8fdb\u884c\u6267\u884c\uff0c\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>\u276f ansible-galaxy install -v -f -r requirements.yml \r\nUsing \/home\/yassan\/repo\/example\/test-ext-role-play\/ansible.cfg as config file\r\n- changing role ping from v1.0 to v1.0\r\n- extracting ping to \/home\/yassan\/repo\/example\/test-ext-role-play\/.ansible\/roles\/ping\r\n- ping (v1.0) was installed successfully\r\n<\/code><\/pre>\n<p>\u6b64\u5916\uff0c\u5728\u8fdb\u884c\u5b89\u88c5\u64cd\u4f5c\u540e\uff0c\u60a8\u4f1a\u53d1\u73b0Role\u5df2\u4fdd\u5b58\u5728roles_path\u53c2\u6570\u6307\u5b9a\u8def\u5f84\u7684\u5b50\u76ee\u5f55\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>\u276f tree .ansible -d | head\r\n.ansible\r\n\u2514\u2500\u2500 roles\r\n    \u2514\u2500\u2500 ping\r\n        \u251c\u2500\u2500 defaults\r\n        \u251c\u2500\u2500 handlers\r\n        \u251c\u2500\u2500 meta\r\n        \u251c\u2500\u2500 molecule\r\n        \u2502   \u2514\u2500\u2500 default\r\n        \u251c\u2500\u2500 tasks\r\n        \u251c\u2500\u2500 tests\r\n<\/code><\/pre>\n<h1>\u6700\u7ec8<br \/>\n\u7ed3\u675f<br \/>\n\u6700\u540e<br \/>\n\u5230\u6700\u540e<\/h1>\n<p>\u5982\u679c\u5728plyabook\u7684\u5b58\u50a8\u5e93\u4e2d\u653e\u5165\u592a\u591a\u7684\u89d2\u8272\uff0c\u4f1a\u4f7f\u6d4b\u8bd5\u7ba1\u7406\u53d8\u5f97\u590d\u6742\uff0c\u56e0\u6b64\u5efa\u8bae\u5728\u89d2\u8272\u589e\u52a0\u5230\u4e00\u5b9a\u7a0b\u5ea6\u65f6\u5c06\u5b58\u50a8\u5e93\u5206\u79bb\u5e76\u8fdb\u884c\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u60f3\u8981\u5728\u4f01\u4e1a\u4e2d\u6258\u7ba1\u7684GitHub Enterprise\u4e2d\u4f7f\u7528\u6765\u81ea\u591a\u4e2aPlaybook\u5b58\u50a8\u5e93\u7684\u53c2\u8003\u5e76\u5229\u7528\u5176\u4e2d\u7684 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42345","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>\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528 - 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\/\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982github-enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528\" \/>\n<meta property=\"og:description\" content=\"\u5982\u679c\u60f3\u8981\u5728\u4f01\u4e1a\u4e2d\u6258\u7ba1\u7684GitHub Enterprise\u4e2d\u4f7f\u7528\u6765\u81ea\u591a\u4e2aPlaybook\u5b58\u50a8\u5e93\u7684\u53c2\u8003\u5e76\u5229\u7528\u5176\u4e2d\u7684 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982github-enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-13T17:04:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T03:35:10+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\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\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/\",\"name\":\"\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-09-13T17:04:34+00:00\",\"dateModified\":\"2024-04-29T03:35:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528 - 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\/\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982github-enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528","og_description":"\u5982\u679c\u60f3\u8981\u5728\u4f01\u4e1a\u4e2d\u6258\u7ba1\u7684GitHub Enterprise\u4e2d\u4f7f\u7528\u6765\u81ea\u591a\u4e2aPlaybook\u5b58\u50a8\u5e93\u7684\u53c2\u8003\u5e76\u5229\u7528\u5176\u4e2d\u7684 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982github-enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-13T17:04:34+00:00","article_modified_time":"2024-04-29T03:35:10+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/","name":"\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-09-13T17:04:34+00:00","dateModified":"2024-04-29T03:35:10+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c06\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u4ed3\u5e93\uff08\u5982GitHub Enterprise\uff09\u4e2d\u7684ansible\u89d2\u8272\u5b58\u50a8\u5e93\u5b89\u88c5\u5e76\u4f7f\u7528"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86%e5%ad%98%e5%82%a8%e5%9c%a8%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e4%bb%93%e5%ba%93%ef%bc%88%e5%a6%82github-enterprise%ef%bc%89%e4%b8%ad%e7%9a%84ansible%e8%a7%92%e8%89%b2%e5%ad%98%e5%82%a8\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42345","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=42345"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42345\/revisions"}],"predecessor-version":[{"id":85033,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42345\/revisions\/85033"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}