{"id":42926,"date":"2023-03-17T09:58:27","date_gmt":"2023-06-22T19:09:31","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/"},"modified":"2024-04-29T19:15:22","modified_gmt":"2024-04-29T11:15:22","slug":"%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/","title":{"rendered":"\u4f7f\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e"},"content":{"rendered":"<p>\u6807\u9898\u7684\u5907\u5fd8\u5f55\u5185\u5bb9\u3002<\/p>\n<h2>\u6211\u60f3\u505a\u7684\u4e8b\u60c5\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">WSL2\u3067ansible+Vagrant\u3067\u306e\u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u74b0\u5883\u3092\u3064\u304f\u308a\u305f\u3044\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u540c\u4e00\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u3067vagrant up\u3068ansible-playbook\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3057\u305f\u3044\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\uff08vagrant.exe\u3060\u3068\u3001ansible\u306fWSL2\u5074\u3001Vagrantfile\u306fwindows\u5074\u306b\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304b\u3063\u305f\u3002\uff09<\/ul>\n<h2>\u5b89\u88c5Vagrant\u7684\u6b65\u9aa4\uff08\u7b80\u5316\uff09<\/h2>\n<h3>\u524d\u63d0\u662f\u4e00\u4e2a\u6761\u4ef6\u6216\u5047\u8bbe\uff0c\u5728\u67d0\u4e2a\u60c5\u51b5\u4e0b\u9700\u8981\u6ee1\u8db3\u6216\u6210\u7acb\u7684\u57fa\u7840\u3002<\/h3>\n<ul class=\"post-ul\">WSL2(Ubuntu)\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u306eWindows10<\/ul>\n<h3>\u5b89\u88c5VirtualBox\uff08Windows\u7248\u672c\uff09\u3002<\/h3>\n<h3>\u4f7f\u7528WSL2\u7684apt\u5b89\u88c5vagrant\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ apt install vagrant\r\n\r\n# apt install\u3067\u5165\u3063\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\r\n$ vagrant --version\r\nVagrant 2.2.6\r\n\r\n<\/code><\/pre>\n<h3>3. \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<p>\u5728.bashrc\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<pre class=\"post-pre\"><code>export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS=1\r\nexport VAGRANT_WSL_WINDOWS_ACCESS_USER=\u30e6\u30fc\u30b6\u30fc\u540d\r\n<\/code><\/pre>\n<h3>4. \u5b89\u88c5VirtualBox_WSL2\u63d2\u4ef6<\/h3>\n<p>\u53ea\u662f\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u5728vagrant up\u65f6\u4f1a\u51fa\u73b0Warning: Connection refused. Retrying&#8230;\u65e0\u6cd5\u8fdb\u884cSSH\u8fde\u63a5\u3002<br \/>\n\u5b89\u88c5\u63d2\u4ef6\u540e\u95ee\u9898\u5f97\u5230\u89e3\u51b3\u3002<\/p>\n<pre class=\"post-pre\"><code>$ vagrant plugin install virtualbox_WSL2\r\n\r\nInstalling the 'virtualbox_WSL2' plugin. This can take a few minutes...\r\nFetching vagrant-libvirt-0.5.3.gem\r\nFetching virtualbox_WSL2-0.1.3.gem\r\nParsing documentation for vagrant-libvirt-0.5.3\r\nInstalling ri documentation for vagrant-libvirt-0.5.3\r\nParsing documentation for virtualbox_WSL2-0.1.3\r\nInstalling ri documentation for virtualbox_WSL2-0.1.3\r\nDone installing documentation for vagrant-libvirt, virtualbox_WSL2 after 1 seconds\r\nInstalled the plugin 'virtualbox_WSL2 (0.1.3)'!\r\n<\/code><\/pre>\n<h3>5. \u66f4\u6b63Vagrantfile<\/h3>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\/vagrant\u65e0\u6cd5\u6302\u8f7d\u5e76\u4e14\u4f3c\u4e4e\u4f1a\u5931\u8d25\u3002<\/p>\n<pre class=\"post-pre\"><code>$ vagrant up\r\nBringing machine 'hostname' up with 'virtualbox' provider...\r\nThere are errors in the configuration of this machine. Please fix\r\nthe following errors and try again:\r\n\r\nvm:\r\n* The host path of the shared folder is not supported from WSL. Host\r\npath of the shared folder must be located on a file system with\r\nDrvFs type. Host path: .\r\n<\/code><\/pre>\n<p>\u5728Vagrantfile\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff08\u4e0d\u5c06\u4e3b\u673a\u7684.\u548c\u865a\u62df\u673a\u7684\/vagrant\u8fdb\u884c\u540c\u6b65\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>h.vm.synced_folder \".\", \"\/vagrant\", disabled: true\r\n<\/code><\/pre>\n<h3>6. \u8fd0\u884cvagrant up<\/h3>\n<p>\u53ef\u4ee5\u3002<\/p>\n<h2>\u5b89\u88c5Ansible\u7684\u6b65\u9aa4\uff08\u7b80\u7565\uff09<\/h2>\n<h3>\u4eceanyenv\u5b89\u88c5pyenv<\/h3>\n<p>\u4efb\u4f55\u73af\u5883<\/p>\n<pre class=\"post-pre\"><code>$ cd ~\r\n$ git clone https:\/\/github.com\/riywo\/anyenv ~\/.anyenv\r\n$ echo 'export PATH=\"$HOME\/.anyenv\/bin:$PATH\"' &gt;&gt; ~\/.bash_profile\r\n$ echo 'eval \"$(anyenv init -)\"' &gt;&gt; ~\/.bash_profile\r\n$ exec $SHELL -l\r\n<\/code><\/pre>\n<p>pyenv \u53ef\u4ee5\u539f\u751f\u5730\u5728\u4e2d\u6587\u4e2d\u6709\u4ee5\u4e0b\u4e00\u79cd\u9009\u9879\u7684\u91cd\u65b0\u8868\u8ff0\uff1a<br \/>\n1. Python\u7248\u672c\u7ba1\u7406\u5de5\u5177 pyenv.<\/p>\n<pre class=\"post-pre\"><code>$ anyenv install pyenv\r\n<\/code><\/pre>\n<p>\u865a\u62df\u73af\u5883<\/p>\n<pre class=\"post-pre\"><code>git clone https:\/\/github.com\/pyenv\/pyenv-virtualenv.git $(pyenv root)\/plugins\/pyenv-virtualenv\r\n<\/code><\/pre>\n<h3>2. \u5b89\u88c5Python\u5e76\u521b\u5efaAnsible\u7684\u865a\u62df\u73af\u5883<\/h3>\n<pre class=\"post-pre\"><code>$ pyenv install 3.9.7\r\n$ pyenv virtualenv 3.9.7 ansible\r\n$ pyenv versions\r\n$ pyenv versions\r\n  system\r\n  3.9.7\r\n  3.9.7\/envs\/ansible\r\n  ansible\r\n<\/code><\/pre>\n<h3>3. \u5728\u76ee\u6807\u76ee\u5f55\u4e2d\u6307\u5b9apython\u7248\u672c\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ cd the_ansible_dir\r\n$ pyenv local ansible\r\n$ pyenv versions\r\n  system\r\n  3.9.7\r\n  3.9.7\/envs\/ansible387\r\n* ansible387 (set by \/root\/the_ansible_dir\/.python-version)\r\n\r\n$ cat .python-version\r\nansible\r\n<\/code><\/pre>\n<h3>\u6267\u884cansible-playbook\u6216ansible-galaxy\u4e4b\u7c7b\u7684\u64cd\u4f5c\u3002<\/h3>\n<p>\u80fd\u591f\u505a\u5230\u3002<\/p>\n<h2>\u8bf7\u53c2\u8003<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/zenn.dev\/lapi\/articles\/2021-06-10-vagrant_wsl2<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/blog.fuga.jp\/?p=2179<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/www.vagrantup.com\/docs\/other\/wsl<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6807\u9898\u7684\u5907\u5fd8\u5f55\u5185\u5bb9\u3002 \u6211\u60f3\u505a\u7684\u4e8b\u60c5\u3002 WSL2\u3067ansible+Vagrant\u3067\u306e\u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u74b0\u5883\u3092\u3064\u304f\u308a\u305f\u3044\u3002 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42926","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\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e - 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\u7528wsl2\u8fdb\u884cvagrantansible\u7684\u73af\u5883\u914d\u7f6e\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e\" \/>\n<meta property=\"og:description\" content=\"\u6807\u9898\u7684\u5907\u5fd8\u5f55\u5185\u5bb9\u3002 \u6211\u60f3\u505a\u7684\u4e8b\u60c5\u3002 WSL2\u3067ansible+Vagrant\u3067\u306e\u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u74b0\u5883\u3092\u3064\u304f\u308a\u305f\u3044\u3002 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528wsl2\u8fdb\u884cvagrantansible\u7684\u73af\u5883\u914d\u7f6e\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-22T19:09:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T11:15:22+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\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%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/\",\"name\":\"\u4f7f\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-22T19:09:31+00:00\",\"dateModified\":\"2024-04-29T11:15:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%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\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e\"}]},{\"@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\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e - 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\u7528wsl2\u8fdb\u884cvagrantansible\u7684\u73af\u5883\u914d\u7f6e\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e","og_description":"\u6807\u9898\u7684\u5907\u5fd8\u5f55\u5185\u5bb9\u3002 \u6211\u60f3\u505a\u7684\u4e8b\u60c5\u3002 WSL2\u3067ansible+Vagrant\u3067\u306e\u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u74b0\u5883\u3092\u3064\u304f\u308a\u305f\u3044\u3002 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528wsl2\u8fdb\u884cvagrantansible\u7684\u73af\u5883\u914d\u7f6e\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-22T19:09:31+00:00","article_modified_time":"2024-04-29T11:15:22+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\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%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/","name":"\u4f7f\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-22T19:09:31+00:00","dateModified":"2024-04-29T11:15:22+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%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\u7528WSL2\u8fdb\u884cVagrant+ansible\u7684\u73af\u5883\u914d\u7f6e"}]},{"@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\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2%e8%bf%9b%e8%a1%8cvagrantansible%e7%9a%84%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%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\/42926","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=42926"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42926\/revisions"}],"predecessor-version":[{"id":87130,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42926\/revisions\/87130"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}