{"id":42404,"date":"2023-09-12T13:53:52","date_gmt":"2023-02-21T14:37:04","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/"},"modified":"2024-05-03T23:22:48","modified_gmt":"2024-05-03T15:22:48","slug":"%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/","title":{"rendered":"\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5"},"content":{"rendered":"<h1>\u6982\u51b5<\/h1>\n<p>2020\u5e741\u67081\u65e5\u8d77\uff0cPython 2.7 \u7684\u652f\u6301\u5c06\u6b63\u5f0f\u7ed3\u675f\u3002\u56e0\u6b64\uff0c\u5728\u8fd9\u4e2a\u65f6\u673a\u4e0a\uff0c\u6211\u4eec\u4e5f\u4f1a\u5c06 Ansible \u7684\u6267\u884c\u73af\u5883\u8fc1\u79fb\u5230 3.x \u7cfb\u5217\u3002\u6211\u60f3\u4fdd\u7559\u4e0b\u8fc1\u79fb\u7684\u6b65\u9aa4\u3002<\/p>\n<h1>\u6b65\u9aa4<\/h1>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5b89\u88c5Python3.x<\/ol>\n<\/li>\n<\/ol>\n<p>\u6839\u636e\u4e0d\u540c\u7684\u5e73\u53f0\u8fdb\u884c\u5b89\u88c5<\/p>\n<p>\u4f8b\u5982\uff08Centos\uff09<br \/>\n&gt; yum install -y python36 python36-pip python36-devel<\/p>\n<p>\u786e\u8ba4pip3\u662f\u5426\u53ef\u7528\uff0c\u5e76\u5347\u7ea7pip<br \/>\n\u5982\u679c\u53ea\u6709pip-3.x\u800c\u6ca1\u6709pip3\uff0c\u8bf7\u5728\u6267\u884c\u4ee5\u4e0b\u5347\u7ea7\u547d\u4ee4\u540e\u624d\u80fd\u4f7f\u7528pip3<\/p>\n<p>&gt; pip-3.x install &#8211;upgrade pip<\/p>\n<p>\u5b89\u88c5Python3.x\u7684Ansible<\/p>\n<p>\u5982\u679c\u5df2\u7ecf\u4f7f\u7528Ansible\uff0c\u8bf7\u5148\u5220\u9664Python2.x\u7684Ansible\uff0c\u7136\u540e\u5b89\u88c5Python3.x\u7684Ansible<\/p>\n<p>&gt; pip uninstall ansible<br \/>\n&gt; pip3 install ansible<\/p>\n<p>\u5982\u679c\u8981\u5f15\u5165\u65b0\u7684Ansible<\/p>\n<p>&gt; pip3 install ansible<\/p>\n<p>\u7248\u672c\u786e\u8ba4<br \/>\n\u8bf7\u786e\u8ba4Python\u7248\u672c\u4e3a3.x<\/p>\n<p>&gt; ansible &#8211;version<\/p>\n<p>ansible 2.8.5<br \/>\nconfig file = \/root\/.ansible.cfg<br \/>\nconfigured module search path = [&#8216;\/root\/.ansible\/plugins\/modules&#8217;, &#8216;\/usr\/share\/ansible\/plugins\/modules&#8217;]<br \/>\nansible python module location = \/usr\/local\/lib\/python3.6\/site-packages\/ansible<br \/>\nexecutable location = \/usr\/local\/bin\/ansible<br \/>\npython version = 3.6.8 (default, Aug 2 2019, 17:42:44) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]<\/p>\n<p>\u6307\u5b9aAnsible\u4f7f\u7528\u7684Python<br \/>\n\u4f7f\u7528whereis python3\u547d\u4ee4\u67e5\u627epython3\u547d\u4ee4\u7684\u4f4d\u7f6e<br \/>\n\u6709\u4ee5\u4e0b\u4e09\u79cd\u65b9\u6cd5\uff1a<\/p>\n<p>\u5728ansible.cfg\u7684[defaults]\u90e8\u5206\u4e2d\u8bbe\u7f6einterpreter_python=\/usr\/bin\/python3<br \/>\n\u8bbe\u7f6e\u53d8\u91cfansible_python_interpreter=\/usr\/bin\/python3<br \/>\n\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfINTERPRETER_PYTHON=\/usr\/bin\/python3<\/p>\n<p>\u82e5\u8981\u8bbe\u7f6e\u4ee5\u4e0a\u914d\u7f6e\uff0c\u5219Ansible\u5c06\u4f7f\u7528Python3\u5bf9\u64cd\u4f5c\u4e3b\u673a\u8fdb\u884c\u64cd\u4f5c\u3002\u5982\u679c\u53ea\u60f3\u5728Ansible\u8fd0\u884c\u73af\u5883\u4e2d\u5e94\u7528Python3\uff0c\u53ef\u4ee5\u5728host_vars\u6216group_vars\u4e2d\u521b\u5efalocal.yml\u6587\u4ef6\uff0c\u5e76\u8bbe\u7f6eansible_python_interpreter: \/usr\/bin\/python3\u3002<\/p>\n<h1>\u6545\u969c\u6392\u9664<\/h1>\n<p>\u6211\u5c06\u4ecb\u7ecd\u4ee5\u4e0b\u9519\u8bef\u51fa\u73b0\u65f6\u7684\u5bf9\u5e94\u89e3\u51b3\u65b9\u6cd5\u3002\u5982\u679c\u6709\u5176\u4ed6\u672a\u5728\u4e0b\u9762\u5217\u51fa\u7684\u9519\u8bef\u7b49\u60c5\u51b5\uff0c\u8bf7\u60a8\u544a\u77e5\uff0c\u6211\u5c06\u8fdb\u884c\u8ffd\u52a0\u3002<\/p>\n<h2>\u5c5e\u6027\u9519\u8bef: \u6a21\u5757 &#8216;enum&#8217; \u6ca1\u6709 &#8216;IntFlag&#8217; \u5c5e\u6027\u3002<\/h2>\n<pre class=\"post-pre\"><code>&gt; pip3 uninstall enum34\r\n<\/code><\/pre>\n<h1>\u6709\u5173Ansible Tower\u548cAWX\u7684\u4fe1\u606f<\/h1>\n<p>\u9700\u8981\u521b\u5efaPython3.x\u7684\u865a\u62df\u73af\u5883\uff0c\u5e76\u5b89\u88c5Ansible\u4ee5\u53ca\u5176\u4ed6Tower\/AWX\u6240\u9700\u7684\u6a21\u5757\u7b49\u3002<br \/>\n\u9ed8\u8ba4\u8def\u5f84\u662f\/var\/lib\/awx\/venv\/xxx\u3002<\/p>\n<p>\u6211\u5011\u6309\u7167\u516c\u5f0f\u7684\u6b65\u9a5f\u4f86\u9032\u884c\u64cd\u4f5c\u3002<\/p>\n<h2>AWX 6.1.0\u7684\u4e2d\u6587\u672c\u5730\u5316\u7248\u672c\u3002<\/h2>\n<p>\u5728AWX 6.1.0\u4e2d\uff0c\u6839\u636e\u4e0a\u8ff0\u516c\u5f0f\u6b65\u9aa4\u65e0\u6cd5\u6210\u529f\u8fdb\u884c\u8bbe\u7f6e\u3002\u3002\u3002<\/p>\n<p>\u53ea\u9700\u8981\u4e00\u79cd\u9009\u62e9\uff1a<\/p>\n<p>\u865a\u62df\u73af\u5883\u8def\u5f84\u662f\/var\/lib\/awx\/venv\uff0c\u5206\u522b\u5df2\u8bbe\u7f6e\u597d\u4e86\/var\/lib\/awx\/venv\/ansible\uff08Python2.x\uff09\u548c\/var\/lib\/awx\/venv\/awx\uff08Python3.x\uff09\u3002<br \/>\n\u5728AWX\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u4e2d\uff0c\u4f7f\u7528\u7684\u662f\/var\/lib\/awx\/venv\/ansible\u3002<br \/>\n\u5728\u914d\u7f6e\u754c\u9762\u7684\u201cCustom virtual environment paths\u201d\u4e2d\u8bbe\u7f6e\u4e86\/var\/lib\/awx\/venv\uff0c\u4f46\u662f\u65e0\u6cd5\u68c0\u6d4b\u5230\/var\/lib\/awx\/venv\/awx\uff08\u53ef\u4ee5\u5728api\/v2\/config\/custom_virtualenvs\u4e2d\u786e\u8ba4\uff09\uff0c\u5373\u4f7f\u8fdb\u884cPATCH\u64cd\u4f5c\u4e5f\u65e0\u6cd5\u4fee\u590d\u3002<\/p>\n<pre class=\"post-pre\"><code>\/var\/lib\/awx\/venv\/awx is not a valid virtualenv in \/var\/lib\/awx\/venv\r\n<\/code><\/pre>\n<p>\u7ed9\u51fa\u4e86\u9519\u8bef\u3002\u3002\u3002<\/p>\n<p>\u4e5f\u8bb8\u53ea\u6709\u5728\/var\/lib\/awx\/venv\u4e4b\u5916\u521b\u5efavenv\u624d\u80fd\u88ab\u8ba4\u53ef\u5417\uff1f<\/p>\n<h1>\u53ef\u4ee5\u8003\u8651<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Ansible2.8\u306e\u65b0\u6a5f\u80fd1 &#8211; Interpreter Discovery<\/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\">[Ansible] \u5229\u7528\u3059\u308b Python \u3092\u30bf\u30b9\u30af\u3054\u3068\u306b\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\uff08ansible_python_interpreter \u3092\u30bf\u30b9\u30af\u5909\u6570\u3067\u6307\u5b9a\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">python_3_support<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u51b5 2020\u5e741\u67081\u65e5\u8d77\uff0cPython 2.7 \u7684\u652f\u6301\u5c06\u6b63\u5f0f\u7ed3\u675f\u3002\u56e0\u6b64\uff0c\u5728\u8fd9\u4e2a\u65f6\u673a\u4e0a\uff0c\u6211\u4eec\u4e5f\u4f1a\u5c06 Ansib [&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-42404","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>\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5 - 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\/\u5c06ansible\u4ecepython2-x\u5347\u7ea7\u5230python3-x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u6982\u51b5 2020\u5e741\u67081\u65e5\u8d77\uff0cPython 2.7 \u7684\u652f\u6301\u5c06\u6b63\u5f0f\u7ed3\u675f\u3002\u56e0\u6b64\uff0c\u5728\u8fd9\u4e2a\u65f6\u673a\u4e0a\uff0c\u6211\u4eec\u4e5f\u4f1a\u5c06 Ansib [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06ansible\u4ecepython2-x\u5347\u7ea7\u5230python3-x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-21T14:37:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T15:22:48+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=\"1 \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%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/\",\"name\":\"\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-21T14:37:04+00:00\",\"dateModified\":\"2024-05-03T15:22:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5\"}]},{\"@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%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5 - 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\/\u5c06ansible\u4ecepython2-x\u5347\u7ea7\u5230python3-x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5","og_description":"\u6982\u51b5 2020\u5e741\u67081\u65e5\u8d77\uff0cPython 2.7 \u7684\u652f\u6301\u5c06\u6b63\u5f0f\u7ed3\u675f\u3002\u56e0\u6b64\uff0c\u5728\u8fd9\u4e2a\u65f6\u673a\u4e0a\uff0c\u6211\u4eec\u4e5f\u4f1a\u5c06 Ansib [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06ansible\u4ecepython2-x\u5347\u7ea7\u5230python3-x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-21T14:37:04+00:00","article_modified_time":"2024-05-03T15:22:48+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/","name":"\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-21T14:37:04+00:00","dateModified":"2024-05-03T15:22:48+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c06Ansible\u4ecePython2.x\u5347\u7ea7\u5230Python3.x\u7684\u6b65\u9aa4\u548c\u6545\u969c\u6392\u9664\u65b9\u6cd5"}]},{"@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%86ansible%e4%bb%8epython2-x%e5%8d%87%e7%ba%a7%e5%88%b0python3-x%e7%9a%84%e6%ad%a5%e9%aa%a4%e5%92%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%96%b9%e6%b3%95%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\/42404","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=42404"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42404\/revisions"}],"predecessor-version":[{"id":94723,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42404\/revisions\/94723"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}