{"id":5475,"date":"2021-03-23T20:51:40","date_gmt":"2021-03-23T12:51:40","guid":{"rendered":"http:\/\/39.97.231.10\/?p=5475"},"modified":"2021-03-23T20:51:40","modified_gmt":"2021-03-23T12:51:40","slug":"ansible%e9%85%8d%e7%bd%ae%e6%89%a7%e8%a1%8c%e8%bf%9c%e7%a8%8b%e4%b8%bb%e6%9c%ba%e7%9a%84ssh%e7%ab%af%e5%8f%a3%e5%8f%b7","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=5475","title":{"rendered":"Ansible\u914d\u7f6e\u6267\u884c\u8fdc\u7a0b\u4e3b\u673a\u7684ssh\u7aef\u53e3\u53f7"},"content":{"rendered":"<p>\u670d\u52a1\u5668\u7684ssh\u7aef\u53e3\u53f7\u5982\u5c06\u9ed8\u8ba422 \u4fee\u6539\u6210 \u5176\u4ed6\u7aef\u53e3\u53f7\u65f6\uff0c\u5982\u4f55\u914d\u7f6e\uff1f<br \/>\n\u7f16\u8f91 \/etc\/ansible\/hosts<br \/>\n[servers]<br \/>\n192.168.1.1 ansible_ssh_user=root ansible_ssh_port= 2221<br \/>\n192.168.1.2 ansible_ssh_user=root ansible_ssh_port= 2222<br \/>\n192.168.1.3 ansible_ssh_user=root ansible_ssh_port= 2223<br \/>\n\u914d\u7f6e\u5b8c\u6bd5\u540e\uff0c\u6267\u884cansible\u547d\u4ee4\u5373\u53ef\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<br \/>\nansible servers -m shell -a \\&#8221;df -h \\&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u670d\u52a1\u5668\u7684ssh\u7aef\u53e3\u53f7\u5982\u5c06\u9ed8\u8ba422 \u4fee\u6539\u6210 \u5176\u4ed6\u7aef\u53e3\u53f7\u65f6\uff0c\u5982\u4f55\u914d\u7f6e\uff1f \u7f16\u8f91 \/etc\/ansible\/hosts &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=5475\"> <span class=\"screen-reader-text\">Ansible\u914d\u7f6e\u6267\u884c\u8fdc\u7a0b\u4e3b\u673a\u7684ssh\u7aef\u53e3\u53f7<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[92,112],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"\u670d\u52a1\u5668\u7684ssh\u7aef\u53e3\u53f7\u5982\u5c06\u9ed8\u8ba422 \u4fee\u6539\u6210 \u5176\u4ed6\u7aef\u53e3\u53f7\u65f6\uff0c\u5982\u4f55\u914d\u7f6e\uff1f \u7f16\u8f91 \/etc\/ansible\/hosts&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/5475"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5475"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/5475\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5475"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}