{"id":42606,"date":"2023-02-27T14:36:02","date_gmt":"2023-12-29T13:17:14","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/"},"modified":"2024-04-29T16:34:05","modified_gmt":"2024-04-29T08:34:05","slug":"%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/","title":{"rendered":"\u4f7f\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5"},"content":{"rendered":"<p>\u6211\u5b89\u88c5\u4e86Windows10\u7684\u79cb\u5b63\u521b\u4f5c\u8005\u66f4\u65b0\uff0c\u5e76\u4eceWindows\u5546\u5e97\u4e2d\u5b89\u88c5\u4e86Ubuntsu\u3002\u7136\u540e\uff0c\u6211\u5b89\u88c5\u4e86Ansible\uff0c\u5e76\u5c1d\u8bd5\u64cd\u4f5cWindows10\u3002<\/p>\n<h1>\u5728WSL\u4e0a\u7684\u5de5\u4f5c<\/h1>\n<p>\u6211\u6839\u636e\u8fd9\u4e2a\u94fe\u63a5\u4e2d\u4ecb\u7ecd\u7684\u6b65\u9aa4\u5b89\u88c5\u4e86Ansible\u3002<\/p>\n<p>\u7531\u4e8eWSL\u4e2d\u7684root\u5bc6\u7801\u672a\u77e5\uff0c\u56e0\u6b64\u6211\u4eec\u5c06\u4f7f\u7528sudo\u8fdb\u884c\u5b89\u88c5\u3002<br \/>\n\u5bc6\u7801\u662f\u5728Ubuntu\u5b89\u88c5\u65f6\u6307\u5b9a\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo apt-get update\r\nsudo apt-get install python-pip git libffi-dev libssl-dev -y\r\npip install ansible pywinrm\r\nsource ~\/.profile\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4\u7248\u672c<\/h2>\n<pre class=\"post-pre\"><code>username@HOST:~$ ansible --version\r\nansible 2.4.0.0\r\n  config file = \/etc\/ansible\/ansible.cfg\r\n  configured module search path = [u'\/home\/username\/.ansible\/plugins\/modules', u'\/usr\/share\/ansible\/plugins\/modules']\r\n  ansible python module location = \/home\/username\/.local\/lib\/python2.7\/site-packages\/ansible\r\n  executable location = \/home\/username\/.local\/bin\/ansible\r\n  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]\r\n<\/code><\/pre>\n<h1>\u5728\u88ab\u64cd\u4f5c\u7684Windows10\u4e0a\u7684\u5de5\u4f5c\u4e2d<\/h1>\n<h2>\u8fd0\u884c\u4e00\u4e2a\u811a\u672c\u6765\u63a5\u53d7Ansible\u901a\u8fc7WinRM\u8fde\u63a5\u7684\u8bf7\u6c42\u3002<\/h2>\n<p>\u5c06Ansible\u516c\u5f0f\u811a\u672c\u7528PowerShell\u8fdb\u884c\u6267\u884c\u3002<br \/>\n\u8bf7\u5728\u672c\u5730\u4e0b\u8f7d\u5b83\uff1ahttps:\/\/github.com\/ansible\/ansible\/blob\/devel\/examples\/scripts\/ConfigureRemotingForAnsible.ps1<br \/>\n\u7136\u540e\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00PowerShell\u63a7\u5236\u53f0\u3002<\/p>\n<pre class=\"post-pre\"><code>Set-ExecutionPolicy RemoteSigned -Force\r\nPS D:\\&gt;.\\ConfigureRemotingForAnsible.ps1\r\n<\/code><\/pre>\n<p>\u5982\u679cOK\u4e86\uff0c\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<h2>\u5141\u8bb8\u4f7f\u7528HTTP\u6765\u8fde\u63a5WinRM\u3002<\/h2>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u53ea\u5141\u8bb8HTTPS\uff0c\u4e3a\u4e86\u4f7f\u7528HTTP\uff0c\u9700\u8981\u505a\u51fa\u76f8\u5e94\u7684\u4fee\u6539\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\WINDOWS\\system32&gt; winrm set winrm\/config\/service '@{AllowUnencrypted=\"true\"}'\r\nService\r\n    RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)\r\n    MaxConcurrentOperations = 4294967295\r\n    MaxConcurrentOperationsPerUser = 1500\r\n    EnumerationTimeoutms = 240000\r\n    MaxConnections = 300\r\n    MaxPacketRetrievalTimeSeconds = 120\r\n    AllowUnencrypted = true\r\n    Auth\r\n        Basic = true\r\n        Kerberos = true\r\n        Negotiate = true\r\n        Certificate = false\r\n        CredSSP = false\r\n        CbtHardeningLevel = Relaxed\r\n    DefaultPorts\r\n        HTTP = 5985\r\n        HTTPS = 5986\r\n    IPv4Filter = *\r\n    IPv6Filter = *\r\n    EnableCompatibilityHttpListener = false\r\n    EnableCompatibilityHttpsListener = false\r\n    CertificateThumbprint\r\n    AllowRemoteAccess = true\r\n<\/code><\/pre>\n<h3>\u5982\u679c\u53d1\u751f\u9519\u8bef<\/h3>\n<p>\u5982\u679c\u5728\u5b89\u88c5Docker For Windows\u7b49\u8f6f\u4ef6\u65f6\u9047\u5230\u4e86\u8fd9\u6837\u7684\u9519\u8bef\uff0c\u60a8\u53ef\u4ee5\u6682\u65f6\u7981\u7528\u9002\u914d\u5668\u672c\u8eab\u6765\u907f\u514d\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\WINDOWS\\system32&gt; winrm set winrm\/config\/service '@{AllowUnencrypted=\"true\"}'\r\nWSManFault\r\n    Message\r\n        ProviderFault\r\n            WSManFault\r\n                Message = \u3053\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e\u7a2e\u985e\u306e 1 \u3064\u304c Public \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001WinRM \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u4f8b\u5916\u306f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e\u7a2e\u985e\u3092 Domain \u307e\u305f\u306f Private \u306b\u5909\u66f4\u3057\u3066\u3001\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n\r\n\u30a8\u30e9\u30fc\u756a\u53f7:  -2144108183 0x80338169\r\n\u3053\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e\u7a2e\u985e\u306e 1 \u3064\u304c Public \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001WinRM \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u4f8b\u5916\u306f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e \u7a2e\u985e\u3092 Domain \u307e\u305f\u306f Private \u306b\u5909\u66f4\u3057\u3066\u3001\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n<\/code><\/pre>\n<h4>\u7981\u7528\u7f51\u7edc\u7684\u65b9\u6cd5<\/h4>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d4de237434c4406cbf07b\/19-1.png\" alt=\"image.png\" \/><\/div>\n<h3>\u8bf7\u786e\u8ba4\u80fd\u5426\u4ece\u5916\u90e8\u8fdb\u884c\u8fde\u63a5\u3002<\/h3>\n<p>\u786e\u8ba4\u5916\u90e8\u662f\u5426\u63a5\u6536\u5916\u90e8WinRM\u8fde\u63a5\u7684\u7aef\u53e3\u3002<br \/>\n\u5982\u679c\u5b58\u5728HTTP\u7aef\u53e3\uff0c\u5219\u8868\u793a\u6b63\u5e38\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\WINDOWS\\system32&gt; winrm enumerate winrm\/config\/listener\r\nListener\r\n    Address = *\r\n    Transport = HTTP\r\n    Port = 5985\r\n    Hostname\r\n    Enabled = true\r\n    URLPrefix = wsman\r\n    CertificateThumbprint\r\n    ListeningOn = ~~~\r\n\r\nListener\r\n    Address = *\r\n    Transport = HTTPS\r\n    Port = 5986\r\n    Hostname = HOST\r\n    Enabled = true\r\n    URLPrefix = wsman\r\n    CertificateThumbprint = 1F9DA18E3B0F74D82ACBDE4188FC5276F238B369\r\n    ListeningOn = ~~~\r\n<\/code><\/pre>\n<h1>\u4eceWSL\u8fde\u63a5\u5230\u672c\u673a(Windows10)\u3002<\/h1>\n<h2>\u521b\u5efa\u8bbe\u7f6e\u6587\u4ef6 du fichier de configuration)<\/h2>\n<p>\u5728WSL\u7684\u4e3b\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3ahosts\u7684\u4e8b\u4ef6\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>xxxx@HOST:~$ pwd\r\n\/home\/username\r\n\r\nusername@HOST:~$ vi hosts\r\n<\/code><\/pre>\n<p>\u4e8b\u4ef6\u6587\u4ef6\u7684\u7f16\u5199\u65b9\u5f0f\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">[<\/span>windows<span class=\"p\">]<\/span>\r\n<span class=\"m\">192<\/span><span class=\"p\">.<\/span><span class=\"m\">168<\/span><span class=\"p\">.<\/span>xxx<span class=\"p\">.<\/span>xxx\u3000\u21d2\u3000\u81ea\u30db\u30b9\u30c8<span class=\"p\">(<\/span>Windows10<span class=\"p\">)<\/span>\u306eIP\u30a2\u30c9\u30ec\u30b9\r\n\r\n<span class=\"p\">[<\/span>windows<span class=\"p\">:<\/span>vars<span class=\"p\">]<\/span>\r\nabsible_user<span class=\"p\">=<\/span>Windows<span class=\"m\">10<\/span>\u306e\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u540d\r\nansible_password<span class=\"p\">=<\/span>Windows<span class=\"m\">10<\/span>\u306e\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\r\nansible_port<span class=\"p\">=<\/span><span class=\"m\">5985<\/span>\r\nansible_connection<span class=\"p\">=<\/span>winrm\r\nansible_winrm_server_cert_validation<span class=\"p\">=<\/span>ignore\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4\u8fde\u63a5\u5230Ansible\u7684\u4e3b\u673a\uff08Windows 10\uff09\u3002<\/h2>\n<p>\u5728\u6211\u7684\u73af\u5883\u4e2d\uff0c\u5982\u679c\u4e0d\u6dfb\u52a0&#8221;-u&#8221;\u9009\u9879\uff0c\u5c31\u4f1a\u51fa\u73b0\u8fd9\u6837\u7684\u9519\u8bef\uff0c\u8ba9\u6211\u76f8\u5f53\u56f0\u6270\u3002<\/p>\n<pre class=\"post-pre\"><code>username@HOST:~$ ansible windows -i hosts -m win_ping\r\n192.168.xxx.xxx | UNREACHABLE! =&gt; {\r\n    \"changed\": false,\r\n    \"msg\": \"plaintext: auth method plaintext requires a username\",\r\n    \"unreachable\": true\r\n}\r\n<\/code><\/pre>\n<p>\u53ea\u8981\u6dfb\u52a0\u201c-u\u201d\u9009\u9879\uff0c\u5c31\u80fd\u6210\u529f\u3002<\/p>\n<pre class=\"post-pre\"><code>username@HOST:~$ ansible windows -i hosts -m win_ping -u ansible_user\u3068\u540c\u3058\u30e6\u30fc\u30b6\u540d\r\n192.168.xxx.xxx | SUCCESS =&gt; {\r\n    \"changed\": false,\r\n    \"failed\": false,\r\n    \"ping\": \"pong\"\r\n}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5b89\u88c5\u4e86Windows10\u7684\u79cb\u5b63\u521b\u4f5c\u8005\u66f4\u65b0\uff0c\u5e76\u4eceWindows\u5546\u5e97\u4e2d\u5b89\u88c5\u4e86Ubuntsu\u3002\u7136\u540e\uff0c\u6211\u5b89\u88c5\u4e86Ans [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42606","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\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5 - 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\u7528windows-subsystem-for-linux\uff08wsl\uff09\u5728windows10\u4e0a\u5b89\u88c5ansible\u5e76\u8fdb\u884c\u8fde\u63a5\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5\" \/>\n<meta property=\"og:description\" content=\"\u6211\u5b89\u88c5\u4e86Windows10\u7684\u79cb\u5b63\u521b\u4f5c\u8005\u66f4\u65b0\uff0c\u5e76\u4eceWindows\u5546\u5e97\u4e2d\u5b89\u88c5\u4e86Ubuntsu\u3002\u7136\u540e\uff0c\u6211\u5b89\u88c5\u4e86Ans [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528windows-subsystem-for-linux\uff08wsl\uff09\u5728windows10\u4e0a\u5b89\u88c5ansible\u5e76\u8fdb\u884c\u8fde\u63a5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-29T13:17:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T08:34:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d4de237434c4406cbf07b\/19-1.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\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, \u96c5\" \/>\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%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/\",\"name\":\"\u4f7f\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-29T13:17:14+00:00\",\"dateModified\":\"2024-04-29T08:34:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5\"}]},{\"@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\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5 - 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\u7528windows-subsystem-for-linux\uff08wsl\uff09\u5728windows10\u4e0a\u5b89\u88c5ansible\u5e76\u8fdb\u884c\u8fde\u63a5\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5","og_description":"\u6211\u5b89\u88c5\u4e86Windows10\u7684\u79cb\u5b63\u521b\u4f5c\u8005\u66f4\u65b0\uff0c\u5e76\u4eceWindows\u5546\u5e97\u4e2d\u5b89\u88c5\u4e86Ubuntsu\u3002\u7136\u540e\uff0c\u6211\u5b89\u88c5\u4e86Ans [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528windows-subsystem-for-linux\uff08wsl\uff09\u5728windows10\u4e0a\u5b89\u88c5ansible\u5e76\u8fdb\u884c\u8fde\u63a5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-29T13:17:14+00:00","article_modified_time":"2024-04-29T08:34:05+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d4de237434c4406cbf07b\/19-1.png"}],"author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\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%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/","name":"\u4f7f\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-29T13:17:14+00:00","dateModified":"2024-04-29T08:34:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Windows Subsystem for Linux\uff08WSL\uff09\u5728Windows10\u4e0a\u5b89\u88c5Ansible\u5e76\u8fdb\u884c\u8fde\u63a5"}]},{"@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\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8windows-subsystem-for-linux%ef%bc%88wsl%ef%bc%89%e5%9c%a8windows10%e4%b8%8a%e5%ae%89%e8%a3%85ansible%e5%b9%b6%e8%bf%9b%e8%a1%8c%e8%bf%9e%e6%8e%a5\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42606","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=42606"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42606\/revisions"}],"predecessor-version":[{"id":86392,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42606\/revisions\/86392"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}