{"id":2375,"date":"2015-10-18T12:09:43","date_gmt":"2015-10-18T03:09:43","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2375"},"modified":"2015-10-18T12:09:43","modified_gmt":"2015-10-18T03:09:43","slug":"ansible-souce%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e3%81%aa%e3%82%89shell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%81%a7","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/10\/18\/ansible-souce%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e3%81%aa%e3%82%89shell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%81%a7\/","title":{"rendered":"Ansible souce\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u306a\u3089shell\u30e2\u30b8\u30e5\u30fc\u30eb\u3067"},"content":{"rendered":"<p>Ansible\u3067\u74b0\u5883\u5909\u6570\u3092\u8ffd\u52a0\u3059\u308b\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306b\u53cd\u6620\u3057\u305f\u304f\u3066\u3001<br \/>\nsource ~\/.bash_profile\u3092\u5b9f\u884c\u3059\u308b\u30bf\u30b9\u30af\u3092\u5b9f\u65bd\u3057\u305f\u3089\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>[shell]<br \/>\nTASK: [setup\/ruby | reflect .bash_profile] ************************************<br \/>\nfailed: [awshost] => {&#8220;cmd&#8221;: &#8220;source \/root\/.bash_profile&#8221;, &#8220;failed&#8221;: true, &#8220;rc&#8221;:                     2}<br \/>\nmsg: [Errno 2] No such file or directory<\/p>\n<p>FATAL: all hosts have already failed &#8212; aborting<\/p>\n<p>[\/shell]<\/p>\n<p>\u8abf\u3079\u305f\u3068\u3053\u308dsource\u306fshell\u306e\u30d3\u30eb\u30c9\u30a4\u30f3\u30e2\u30b8\u30e5\u30fc\u30eb\u3089\u3057\u3044\u306e\u3067\u3001shell\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5b9f\u65bd\u305b\u3088\u3068\u306e\u3053\u3068\u3067\u3042\u3063\u305f\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u305f\u3089\u554f\u984c\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306bOS\u30b3\u30de\u30f3\u30c9\u3092Ansible\u3067\u5b9f\u65bd\u3057\u305f\u3044\u5834\u5408\u306f\u3001Command\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u306e\u304c\u3088\u3044\u306e\u3060\u304c\u3001\u4eca\u56de\u306esource\u30b3\u30de\u30f3\u30c9\u306e\u307f\u306a\u3089\u305a\u3001Shell\u30e2\u30b8\u30e5\u30fc\u30eb\u3058\u3083\u306a\u3044\u3068\u3067\u304d\u306a\u3044\u3053\u3068(\u30d1\u30a4\u30d7\u3084\u30ea\u30c0\u30a4\u30ec\u30af\u30c8)\u3082\u591a\u3044\u306e\u3067\u6ce8\u610f\u3067\u3042\u308b\u3002<\/p>\n<p>[shell]<br \/>\n&#8211; name: reflect .bash_profile<br \/>\n  shell: source ~\/.bash_profile<br \/>\n[\/shell]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ansible\u3067\u74b0\u5883\u5909\u6570\u3092\u8ffd\u52a0\u3059\u308b\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306b\u53cd\u6620\u3057\u305f\u304f\u3066\u3001 sourc &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/10\/18\/ansible-souce%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e3%81%aa%e3%82%89shell%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%81%a7\/\">\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\/2375"}],"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=2375"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2375\/revisions"}],"predecessor-version":[{"id":2376,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2375\/revisions\/2376"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}