{"id":2353,"date":"2015-10-15T22:13:28","date_gmt":"2015-10-15T13:13:28","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2353"},"modified":"2015-10-15T22:13:28","modified_gmt":"2015-10-15T13:13:28","slug":"ansible-shell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%81%a7%e8%a4%87%e6%95%b0%e8%a1%8c%e8%a8%98%e8%bf%b0","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/10\/15\/ansible-shell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%81%a7%e8%a4%87%e6%95%b0%e8%a1%8c%e8%a8%98%e8%bf%b0\/","title":{"rendered":"Ansible Shell\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u8907\u6570\u884c\u8a18\u8ff0"},"content":{"rendered":"<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306fCommand\u304bShell\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5b9f\u884c\u3059\u308bOS\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306fCommand\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u30d1\u30a4\u30d7\u3084\u3089\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3084\u3089\u304c\u3042\u308b\u5834\u5408\u306fShell\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u3002<\/p>\n<p>\u8907\u6570\u884c\u8a18\u8ff0\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308b\u304b\uff1f<br \/>\n\u4e0b\u8a18\u306e\u3088\u3046\u306b;\u3067\u533a\u5207\u3063\u3066\u4e26\u3079\u308b\u3068\u3088\u3044\u3002<br \/>\n;\u3092\u5165\u308c\u306a\u3044\u3068\u7d9a\u304d\u3068\u307f\u306a\u3055\u308c\u308b\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p>[shell]<br \/>\n&#8211; name: git clone and rbenv<br \/>\n  shell: ><br \/>\n    git clone https:\/\/github.com\/sstephenson\/rbenv.git ~\/.rbenv;<br \/>\n    git clone https:\/\/github.com\/sstephenson\/ruby-build.git ~\/.rbenv\/plugins\/ruby-build;<br \/>\n    echo &#8216;export PATH=&#8221;$HOME\/.rbenv\/bin:$PATH&#8221;&#8216; >> ~\/.bash_profile;<br \/>\n    echo &#8216;eval &#8220;$(rbenv init -)&#8221;&#8216; >> ~\/.bash_profile;<br \/>\n  tags: ruby<br \/>\n[\/shell]<\/p>\n<p>\u8907\u6570\u884c\u5b9f\u65bd\u3057\u305f\u5834\u5408\u3001\u3069\u3053\u3067\u3053\u3051\u305f\u304b\u304c\u308f\u304b\u308a\u305a\u3089\u3044\u3002<br \/>\n\u9762\u5012\u3067\u306a\u3051\u308c\u3070\u4e00\u3064\u305a\u3064\u30bf\u30b9\u30af\u3092\u5207\u308b\u306e\u304c\u304a\u52e7\u3081\u3067\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306fCommand\u304bShell\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5b9f\u884c\u3059\u308bOS &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/10\/15\/ansible-shell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%81%a7%e8%a4%87%e6%95%b0%e8%a1%8c%e8%a8%98%e8%bf%b0\/\">\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\/2353"}],"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=2353"}],"version-history":[{"count":2,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2353\/revisions"}],"predecessor-version":[{"id":2355,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2353\/revisions\/2355"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}