{"id":2716,"date":"2016-08-03T14:25:38","date_gmt":"2016-08-03T05:25:38","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2716"},"modified":"2016-08-03T18:18:20","modified_gmt":"2016-08-03T09:18:20","slug":"ansible-%e3%83%95%e3%83%aa%e3%83%bc%e3%82%ba","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2016\/08\/03\/ansible-%e3%83%95%e3%83%aa%e3%83%bc%e3%82%ba\/","title":{"rendered":"Ansible \u30d5\u30ea\u30fc\u30ba \u539f\u56e0\u306f\u516c\u958b\u9375\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u30df\u30b9"},"content":{"rendered":"<p>\u539f\u56e0\u4e0d\u660e\u3060\u304c\u3001\u3053\u3046\u3044\u3046\u3053\u3068\u3082\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u8a18\u9332\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>\u672c\u65e5\u3044\u3064\u3082\u306e\u901a\u308aAnsible\u306eplaybook\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001\u3053\u308c\u307e\u3067\u306b\u306a\u3044\u73fe\u8c61\u306b\u906d\u9047\u3057\u305f\u3002<\/p>\n<p>\u666e\u901a\u306bSSH\u3067\u304d\u308b\u30de\u30b7\u30f3\u3078PlayBook\u3092\u6d41\u3057\u305f\u3002<br \/>\n\u3082\u3061\u308d\u3093\u305d\u306ePlayBook\u306f\u4f55\u5341\u56de\u3082\u6d41\u3057\u3066\u3044\u308b\u5b9f\u7e3e\u304c\u3042\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u4eca\u65e5\u306b\u9650\u3063\u3066\u306fsetup\u306e\u3068\u3053\u308d\u3067\u52d5\u304b\u306a\u3044\uff01\uff01\uff01<br \/>\n\u3053\u3093\u306a\u3053\u3068\u304c\u3042\u3063\u3066\u826f\u3044\u306e\u304b\uff1f<\/p>\n<p>\u5f8c\u65e5\u8ac7<\/p>\n<p>\u30c8\u30e9\u30d6\u30eb\u89e3\u6d88\u3057\u305f\u3002<br \/>\n\u307e\u305a\u5207\u308a\u5206\u3051\u3068\u3057\u3066\u5bfe\u8c61\u30db\u30b9\u30c8\u3092localhost\u306b\u3057\u305f\u3068\u3053\u308d\u3046\u307e\u304f\u3044\u304f\u3002<br \/>\n\u3053\u308c\u306fSSH\u63a5\u7d9a\u306e\u554f\u984c\u304b\u3068\u601d\u3063\u3066\u3001\u63a5\u7d9a\u3055\u308c\u308b\u5074\u306e\u30db\u30b9\u30c8\u3067\u30ed\u30b0\u3092\u898b\u3066\u3044\u305f\u3068\u3053\u308d\u63a5\u7d9a\u306b\u6765\u305f\u5f62\u8de1\u304c\u306a\u3044\u3002<\/p>\n<p>\u3053\u3053\u3067Ansible\u306e\u30a4\u30f3\u30d9\u30f3\u30c8\u30ea\u306e\u5b9a\u7fa9\u3092\u898b\u3066\u307f\u308b\u3068\u3001host\u306bIP\u30a2\u30c9\u30ec\u30b9\u3067\u306f\u306a\u304f\u3001ssh_config\u306e\u5b9a\u7fa9\u540d\u3092\u8a18\u8ff0\u3057\u3066\u3044\u305f\u3002<\/p>\n<p>[shell]<br \/>\n#ansible hosts<br \/>\nsomehost ansible_ssh_host=somehost ansible_ssh_user=root ansible_ssh_port=22<br \/>\n#ssh_config<br \/>\n# azure<br \/>\nHost somehost<br \/>\nUser root<br \/>\nHostName 255.255.255.255<br \/>\nPort 22<br \/>\nIdentityFile ~\/.ssh\/somehost.ppk<br \/>\n[\/shell]<\/p>\n<p>\u3053\u306esomehost\u3067\u5b9a\u7fa9\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u516c\u958b\u9375\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002<br \/>\n\u3053\u306e\u305f\u3081Ansible\u5074\u3067\u4f55\u304b\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u30d5\u30ea\u30fc\u30ba\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u3088\u3046\u3060\u3002<br \/>\n\u516c\u958b\u9375\u8a2d\u5b9a\u3092\u3057\u305f\u5f8c\u306f\u554f\u984c\u306a\u304f\u63a5\u7d9a\u3067\u304d\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u8a2d\u5b9a\u524d\u306e\u5834\u5408\u306fssh_config\u306e\u5b9a\u7fa9\u540d\u3067\u306f\u306a\u304fIP\u30a2\u30c9\u30ec\u30b9\u3067\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3046\u307e\u304f\u3044\u3063\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u56e0\u4e0d\u660e\u3060\u304c\u3001\u3053\u3046\u3044\u3046\u3053\u3068\u3082\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u8a18\u9332\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304f\u3002 \u672c\u65e5\u3044\u3064\u3082\u306e &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2016\/08\/03\/ansible-%e3%83%95%e3%83%aa%e3%83%bc%e3%82%ba\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[364],"tags":[365,366],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2716"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2716"}],"version-history":[{"count":3,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2716\/revisions"}],"predecessor-version":[{"id":2719,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2716\/revisions\/2719"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}