{"id":2132,"date":"2015-08-23T18:42:58","date_gmt":"2015-08-23T09:42:58","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2132"},"modified":"2015-08-23T18:42:58","modified_gmt":"2015-08-23T09:42:58","slug":"ansible-%e3%83%91%e3%82%a4%e3%83%97%e3%82%92%e5%88%a9%e7%94%a8%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%afcommand%e3%81%a7%e3%81%af%e3%81%aa%e3%81%8fshell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/08\/23\/ansible-%e3%83%91%e3%82%a4%e3%83%97%e3%82%92%e5%88%a9%e7%94%a8%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%afcommand%e3%81%a7%e3%81%af%e3%81%aa%e3%81%8fshell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab\/","title":{"rendered":"Ansible \u30d1\u30a4\u30d7\u3092\u5229\u7528\u3059\u308b\u3068\u304d\u306fcommand\u3067\u306f\u306a\u304fshell\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\uff01"},"content":{"rendered":"<p>\u30ed\u30b0\u53ce\u96c6\u306e\u4ed5\u7d44\u307f\u3092fluentd\u3067\u69cb\u7bc9\u3057\u305f\u304f\u3066\u3001Ansible\u5316<\/p>\n<p>td-agent\u306f\u975e\u5e38\u306b\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002<\/p>\n<p>root\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067OK(\u5185\u90e8\u3067repository\u306b\u8ffd\u52a0\u3057\u3066yum install \u3057\u3066\u3044\u308b)<\/p>\n<p>[shell]<br \/>\ncurl -L https:\/\/td-toolbelt.herokuapp.com\/sh\/install-redhat-td-agent2.sh | sh<br \/>\n[\/shell]<\/p>\n<p>\u3053\u308c\u3092\u305d\u306e\u307e\u307eAnsible\u5316\u3057\u305f\u3089\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002\u306a\u3093\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u304b\uff1f\u3068\u601d\u3063\u305f\u3089\u3069\u3046\u3082\u30d1\u30a4\u30d7\u3092URL\u3060\u3068\u601d\u3063\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u6a21\u69d8\u3002<\/p>\n<p>[shell]<br \/>\n&#8211; name: install td-agent<br \/>\n  shell: curl -L https:\/\/td-toolbelt.herokuapp.com\/sh\/install-redhat-td-agent2.sh | sh<br \/>\n# command: curl -L https:\/\/td-toolbelt.herokuapp.com\/sh\/install-redhat-td-agent2.sh | sh<br \/>\n[\/shell]<\/p>\n<p>command\u3067\u306f\u30d1\u30a4\u30d7\u304c\u5229\u7528\u3067\u304d\u306a\u3044\u306e\u3067\u3001shell\u306b\u66f8\u304d\u63db\u3048\u305f\u3089\u7121\u4e8btd-agent\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ed\u30b0\u53ce\u96c6\u306e\u4ed5\u7d44\u307f\u3092fluentd\u3067\u69cb\u7bc9\u3057\u305f\u304f\u3066\u3001Ansible\u5316 td-agen &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/08\/23\/ansible-%e3%83%91%e3%82%a4%e3%83%97%e3%82%92%e5%88%a9%e7%94%a8%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%afcommand%e3%81%a7%e3%81%af%e3%81%aa%e3%81%8fshell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab\/\">\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":[],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2132"}],"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=2132"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2132\/revisions"}],"predecessor-version":[{"id":2133,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2132\/revisions\/2133"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}