{"id":42885,"date":"2023-03-24T03:46:43","date_gmt":"2023-03-24T13:27:02","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/"},"modified":"2024-04-29T20:17:17","modified_gmt":"2024-04-29T12:17:17","slug":"%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/","title":{"rendered":"\u4f7f\u7528Ansible\u548cVagrant\u642d\u5efaLAMP\u73af\u5883"},"content":{"rendered":"<p>\u5e0c\u671b\u4f60\u80fd\u5728\u4f7f\u7528Vagrant\u548cAnsible\u642d\u5efa\u672c\u5730\u73af\u5883\u65f6\uff0c\u7ed9\u4e88\u4e00\u4e9b\u5efa\u8bae\u3002\u8fd9\u662f\u56e0\u4e3a\u6211\u62c5\u5fc3\u81ea\u5df1\u4f1a\u5fd8\u8bb0\uff0c\u540c\u65f6\u4e5f\u5e0c\u671b\u5c06\u5176\u4f5c\u4e3a\u6280\u672f\u5907\u5fd8\u5f55\u7559\u4e0b\u6765\u3002<\/p>\n<p>\u25a0\u5f00\u53d1\u73af\u5883<br \/>\n\u82f9\u679c\u7535\u8111\u64cd\u4f5c\u7cfb\u7edfMacOS<\/p>\n<p>\u25a0\u7248\u672c\u4f7f\u7528<br \/>\nvagrant\u7248\u672c\u4e3a1.7.2\uff0c<br \/>\nansible\u7248\u672c\u4e3a1.9.1\u3002<\/p>\n<p>\u8bf7\u5b89\u88c5Ansible\u3002<br \/>\n\u6709\u591a\u79cd\u5b89\u88c5\u65b9\u6cd5\uff0c\u4f46\u672c\u6b21\u5c06\u4f7f\u7528Homebrew\u8fdb\u884c\u5b89\u88c5\u3002<br \/>\n\u8bf7\u52a1\u5fc5\u5728\u5b89\u88c5\u4e4b\u524d\u5148\u5b89\u88c5Homebrew\u3002<\/p>\n<pre class=\"post-pre\"><code>$ brew install ansible\r\n<\/code><\/pre>\n<p>\u8bf7\u786e\u8ba4\u5b89\u88c5\u662f\u5426\u5df2\u5b8c\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code>$ brew ansible\u3000--version\r\nansible 1.9.1\r\n<\/code><\/pre>\n<p>\u6682\u65f6\u5b89\u88c5\u5b8c\u6210<\/p>\n<p>\u521b\u5efa\u5de5\u4f5c\u76ee\u5f55<\/p>\n<pre class=\"post-pre\"><code>$ mkdir mycentos\r\n<\/code><\/pre>\n<ul class=\"post-ul\">box\u306e\u8ffd\u52a0<\/ul>\n<p>\u8fd9\u6b21\u6211\u4eec\u9009\u62e9\u4e86CentOS 6.5\u4f5c\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u3002\u4f60\u53ef\u4ee5\u5728http:\/\/www.vagrantbox.es\/\u4e0a\u627e\u5230\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cd mycentos\r\n$ vagrant box add centos65 https:\/\/github.com\/2creatives\/vagrant-centos\/releases\/download\/v6.5.3\/centos65-x86_64-20140116.box\r\n<\/code><\/pre>\n<p>\u5982\u679c\u6210\u529f\u7684\u8bdd\uff0c\u4f60\u5c31\u4f1a\u770b\u5230\u6709\u4e00\u4e2a\u76d2\u5b50\u88ab\u6dfb\u52a0\u4e86\u8fdb\u53bb\u3002<\/p>\n<pre class=\"post-pre\"><code>$ vagrant box list\r\ncentos65        (virtualbox, 0)\r\n<\/code><\/pre>\n<ul class=\"post-ul\">vagrantfile\u306e\u4f5c\u6210<\/ul>\n<pre class=\"post-pre\"><code>$ vagrant init centos65\r\n\r\n<\/code><\/pre>\n<ul class=\"post-ul\">vagrantfile\u3092\u7de8\u96c6<\/ul>\n<pre class=\"post-pre\"><code>$ vim vagrantfile \r\n\r\n#\u30db\u30b9\u30c8OS\u304b\u3089\u30b2\u30b9\u30c8OS\u306b\u63a5\u7d9a\u3055\u305b\u308b\u70ba\u306eIP\u3092\u8a2d\u5b9a\r\nconfig.vm.network \"private_network\", ip: \"192.168.33.99\"\r\n<\/code><\/pre>\n<p>\u8fd9\u6b21\u6211\u4eec\u4f1a\u5728\u8fd0\u884c &#8220;vagrant up&#8221; \u65f6\u542f\u52a8 Ansible\uff0c\u6240\u4ee5\u6211\u4f1a\u5728 Vagrantfile \u4e2d\u6dfb\u52a0 Ansible \u7684\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>config.vm.provision \"ansible\" do |ansible|\r\n   ansible.playbook = \"playbook.yml\"\r\n   ansible.inventory_path = \"hosts\"\u3000#\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\/etc\/ansible\/hosts\u3092\u898b\u306b\u884c\u304f\r\n   ansible.limit = 'all'\r\nend\r\n<\/code><\/pre>\n<p>\u5c06ansible.playbook\u8bbe\u7f6e\u4e3aplaybook\u7684\u8def\u5f84<br \/>\n\u5c06ansible.inventory_path\u8bbe\u7f6e\u4e3ainventory\u6587\u4ef6\u7684\u8def\u5f84<\/p>\n<p>\u5728vagrant\u7684\u89c4\u8303\u4e0b\uff0c\u6267\u884cvagrant up\u65f6\uff0c\u53ea\u6709\u7b2c\u4e00\u6b21\u4f1a\u8fd0\u884cprovision\u3002<br \/>\n\u5982\u679c\u60f3\u518d\u6b21\u8fd0\u884c\uff0c\u5219\u9700\u8981\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>$ vagrant provision\r\n<\/code><\/pre>\n<p>\u25a0 Ansible\u7684\u914d\u7f6e<\/p>\n<ul class=\"post-ul\">inventryfile<\/ul>\n<p>\u8fd9\u6b21\u6211\u4eec\u5c06\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u521b\u5efahosts\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u4f5c\u4e3a\u53c2\u8003\u3002<\/p>\n<pre class=\"post-pre\"><code>[web]\r\n192.168.33.99 ansible_ssh_private_key_file=.vagrant\/machines\/default\/virtualbox\/private_key ansible_ssh_user=vagrant\r\n\r\n# \u30b2\u30b9\u30c8OS\u306eIP\u3092\u6307\u5b9a\u3055\u305b\u308b\r\n# ssh\u306eprivate_key\u8a2d\u5b9a\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4e0d\u6307\u5b9assh\u79c1\u94a5\uff0c\u4f1a\u5728ansible\u6267\u884c\u65f6\u51fa\u9519<br \/>\n\u53c2\u8003\u7f51\u7ad9<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"H2C8V5xfDZ\"><p><a href=\"https:\/\/mawatari.jp\/archives\/solution-of-vagrant-ssh-connection-error\">Vagrant 1.7+\u3067SSH\u63a5\u7d9a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306e\u5bfe\u51e6\u6cd5<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Vagrant 1.7+\u3067SSH\u63a5\u7d9a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306e\u5bfe\u51e6\u6cd5&#8221; &#8212; mawatari.jp\" src=\"https:\/\/mawatari.jp\/archives\/solution-of-vagrant-ssh-connection-error\/embed#?secret=H2C8V5xfDZ\" data-secret=\"H2C8V5xfDZ\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<ul class=\"post-ul\">playbook<\/ul>\n<p>\u6211\u5c06\u5728\u8fd9\u91cc\u5199\u4e0b\u60f3\u8981\u5b89\u88c5\u7684\u4e2d\u95f4\u4ef6\u548c\u5404\u79cd\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>---\r\n - hosts: web\r\n   sudo: yes\r\n   tasks:\r\n    - yum: name=vim state=latest\r\n    - name: install apache\r\n      yum: name=httpd state=present\r\n    - name: start apache and enabled\r\n      service: name=httpd state=started enabled=yes\r\n    - name: set epel repository\r\n      shell: rpm -Uvh --force http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\r\n    - name: set remi repository\r\n      command: sudo rpm -Uvh --force http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm\r\n    - name: install php packages\r\n      yum: name={{item}} enablerepo=remi,epel state=present\r\n      with_items:\r\n       - php\r\n       - php-pear\r\n       - php-devel\r\n       - php-mbstring\r\n       - php-pdo\r\n       - php-mysql\r\n       - php-gd\r\n       - php-xdebug\r\n      notify:\r\n       - restart apache\r\n    - name: install mysql\r\n      yum: name={{ item }} enablerepo=remi,epel state=installed\r\n      with_items:\r\n       - mysql-server\r\n       - MySQL-python\r\n      notify:\r\n        - start mysql\r\n   handlers:\r\n    - name: restart apache\r\n      service: name=httpd state=restarted enabled=yes #enabled=yes \u81ea\u52d5\u8d77\u52d5\r\n    - name: start mysql\r\n      service: name=mysqld state=started enabled=yes\r\n    #- name: mysql set password\r\n    #  command: mysqladmin -u root password \"{{ mysql_root_pw }}\"\r\n<\/code><\/pre>\n<p>\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\u5728playbook\u4e2d\u53ef\u4ee5\u521b\u5efaMySQL\u7528\u6237\u3001\u8bbe\u7f6e\u865a\u62df\u4e3b\u673a\u7b49\u7b49\u3002<\/p>\n<p>\u5f53playbook\u7684\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u8bf7\u6267\u884cvagrant up<\/p>\n<pre class=\"post-pre\"><code>$ vagrant up\r\n\r\nBringing machine 'default' up with 'virtualbox' provider...\r\n==&amp;gt; default: Importing base box 'chef\/centos-6.5'...\r\n.....\u4ee5\u4e0b\u7565\r\n\r\n\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u3053\u3053\u304b\u3089playbook\u306e\u5b9f\u884c\u2193\u2193\u2193\u2193\u2193\u2193\u2193\r\n\r\nPLAY [web] ********************************************************************\r\n\r\nGATHERING FACTS ***************************************************************\r\nok: [192.168.33.99]\r\n\r\nTASK: [yum name=vim state=latest] *********************************************\r\nchanged: [192.168.33.99]\r\n\r\nTASK: [install apache] ********************************************************\r\nchanged: [192.168.33.99]\r\n\r\nTASK: [start apache and enabled] **********************************************\r\nchanged: [192.168.33.99]\r\n\r\nTASK: [set epel repository] ***************************************************\r\nchanged: [192.168.33.99]\r\n\r\nTASK: [set remi repository] ***************************************************\r\nchanged: [192.168.33.99]\r\n\r\nTASK: [install php packages] **************************************************\r\nchanged: [192.168.33.99] =&amp;gt; (item=php,php-pear,php-devel,php-mbstring,php-pdo,php-mysql,php-gd,php-xdebug)\r\n\r\nTASK: [install mysql] *********************************************************\r\nchanged: [192.168.33.99] =&amp;gt; (item=mysql-server,MySQL-python)\r\n\r\nNOTIFIED: [restart apache] ****************************************************\r\nchanged: [192.168.33.99]\r\n\r\nNOTIFIED: [start mysql] *******************************************************\r\nchanged: [192.168.33.99]\r\n\r\nPLAY RECAP ********************************************************************\r\n192.168.33.99              : ok=10   changed=9    unreachable=0    failed=0\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ php --version\r\nPHP 5.5.26 (cli) (built: Jun 10 2015 15:29:20)\r\n...\u4ee5\u4e0b\u7565\r\n<\/code><\/pre>\n<p>PHP\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\uff0c\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>$ mysqld --version\r\nmysqld  Ver 5.6.24 for Linux on x86_64 (MySQL Community Server (GPL))\r\n<\/code><\/pre>\n<p>MySQL\u5df2\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<p>\u53ea\u9700\u6309\u7167\u8fd9\u4e2aplaybook\u7684\u8bbe\u7f6e\uff0cAnsible\u5c06\u5904\u7406\u5269\u4e0b\u7684\u4e8b\u60c5\u3002<\/p>\n<p>\u5982\u679c\u60a8\u80fd\u591f\u53c2\u8003\u8fd9\u4e2a\uff0c\u6211\u4f1a\u975e\u5e38\u9ad8\u5174\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e0c\u671b\u4f60\u80fd\u5728\u4f7f\u7528Vagrant\u548cAnsible\u642d\u5efa\u672c\u5730\u73af\u5883\u65f6\uff0c\u7ed9\u4e88\u4e00\u4e9b\u5efa\u8bae\u3002\u8fd9\u662f\u56e0\u4e3a\u6211\u62c5\u5fc3\u81ea\u5df1\u4f1a\u5fd8\u8bb0\uff0c\u540c\u65f6\u4e5f\u5e0c\u671b [&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-42885","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\u548cVagrant\u642d\u5efaLAMP\u73af\u5883 - 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\u548cvagrant\u642d\u5efalamp\u73af\u5883\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Ansible\u548cVagrant\u642d\u5efaLAMP\u73af\u5883\" \/>\n<meta property=\"og:description\" content=\"\u5e0c\u671b\u4f60\u80fd\u5728\u4f7f\u7528Vagrant\u548cAnsible\u642d\u5efa\u672c\u5730\u73af\u5883\u65f6\uff0c\u7ed9\u4e88\u4e00\u4e9b\u5efa\u8bae\u3002\u8fd9\u662f\u56e0\u4e3a\u6211\u62c5\u5fc3\u81ea\u5df1\u4f1a\u5fd8\u8bb0\uff0c\u540c\u65f6\u4e5f\u5e0c\u671b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ansible\u548cvagrant\u642d\u5efalamp\u73af\u5883\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-24T13:27:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T12:17:17+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%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/\",\"name\":\"\u4f7f\u7528Ansible\u548cVagrant\u642d\u5efaLAMP\u73af\u5883 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-24T13:27:02+00:00\",\"dateModified\":\"2024-04-29T12:17:17+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%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%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\u548cVagrant\u642d\u5efaLAMP\u73af\u5883\"}]},{\"@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%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%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\u548cVagrant\u642d\u5efaLAMP\u73af\u5883 - 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\u548cvagrant\u642d\u5efalamp\u73af\u5883\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Ansible\u548cVagrant\u642d\u5efaLAMP\u73af\u5883","og_description":"\u5e0c\u671b\u4f60\u80fd\u5728\u4f7f\u7528Vagrant\u548cAnsible\u642d\u5efa\u672c\u5730\u73af\u5883\u65f6\uff0c\u7ed9\u4e88\u4e00\u4e9b\u5efa\u8bae\u3002\u8fd9\u662f\u56e0\u4e3a\u6211\u62c5\u5fc3\u81ea\u5df1\u4f1a\u5fd8\u8bb0\uff0c\u540c\u65f6\u4e5f\u5e0c\u671b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ansible\u548cvagrant\u642d\u5efalamp\u73af\u5883\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-24T13:27:02+00:00","article_modified_time":"2024-04-29T12:17:17+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%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/","name":"\u4f7f\u7528Ansible\u548cVagrant\u642d\u5efaLAMP\u73af\u5883 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-24T13:27:02+00:00","dateModified":"2024-04-29T12:17:17+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%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%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\u548cVagrant\u642d\u5efaLAMP\u73af\u5883"}]},{"@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%a8ansible%e5%92%8cvagrant%e6%90%ad%e5%bb%balamp%e7%8e%af%e5%a2%83%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\/42885","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=42885"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42885\/revisions"}],"predecessor-version":[{"id":87417,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42885\/revisions\/87417"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}