{"id":910,"date":"2021-09-05T15:25:04","date_gmt":"2021-09-05T06:25:04","guid":{"rendered":"https:\/\/t-office.blue\/?p=910"},"modified":"2021-09-05T15:25:09","modified_gmt":"2021-09-05T06:25:09","slug":"post-910","status":"publish","type":"post","link":"https:\/\/wp.t-office.blue\/?p=910","title":{"rendered":"WordPress\u79fb\u884c\u306e\u65b9\u5411\u6027(Ubuntu, Ansible)1"},"content":{"rendered":"\n\u3000\u3068\u308a\u3042\u3048\u305a\u3001\u624b\u5143\u306eMacBookAir(M1)\u306bDocker\u3067\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u3063\u3066Ubuntu\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u305d\u3053\u306b\u3001Wordpress\u3092\u5fa9\u5143\u3057\u3066\u307f\u3066\u3001\u3046\u307e\u304f\u884c\u3051\u3070\u305d\u306e\u74b0\u5883\u3092\u3055\u304f\u3089\u306eVPS\u306b\u4f5c\u308b\u3002\u3068\u3044\u3046\u65b9\u5411\u3067\u884c\u3053\u3046\u304b\u306a\u3068\u601d\u3063\u3066\u308b\u3002\u69cb\u6210\u7ba1\u7406\u30c4\u30fc\u30ebAnsible\u304bChef\u3068\u304b\u3067\u4f5c\u308c\u305f\u3089\u3001\u4e00\u77ac\u3067\u79fb\u884c\u3067\u304d\u308b\u304b\u306a\u3002\n\n\n\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u7c21\u5358\u306b\u8abf\u3079\u305f\u3068\u3053\u308d\u3001Ansible\u304c\u826f\u3055\u305d\u3046\u3068\u3044\u3046\u3053\u3068\u3067\b\u3053\u308c\u3067\u74b0\u5883\u69cb\u7bc9\u3057\u3066\u3044\u304d\u307e\u3059\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/h2>\n\n\n\n\n\u3000\u3055\u304f\u3089\u306eVPS\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bUbuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f20.04\u3002\u6700\u65b0\u306eUbuntu\u306f21.04\u3002<br>\u3042\u307e\u308a\u6c17\u306b\u305b\u305a\u30c7\u30d5\u30a9\u30eb\u30c8\u306e20.04\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u304b\u306a\u3002\n\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Docker Desktop for Apple silicon\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n\n\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089\u300cMac with apple chip\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066dmg\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002\n\n\n\n<a href=\"https:\/\/docs.docker.com\/desktop\/mac\/apple-silicon\/\">https:\/\/docs.docker.com\/desktop\/mac\/apple-silicon\/<\/a>\n\n\n\nDocker Desuktop\u304c\u6709\u6599\u306b\u306a\u308b\u3068\u3061\u3087\u3063\u3068\u524d\u306b\u8a71\u984c\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u5927\u4e08\u592b\u304b\u306a\u3068\u306f\u304a\u3082\u3046\u3051\u3069\u3001\u4e00\u822c\u30e6\u30fc\u30b6\u306f\u7121\u6599\u306e\u307e\u307e\u3068\u304b\u8a00\u3046\u8a71\u3067\u3057\u305f\u3002<br>\u3067\u3001Docker1.55G\u3082\u3042\u308b\u306e\u304bMacBookAir\u306eSSD\u304c500G\u306a\u306e\u3067\u3067\u304b\u3044\u306a\u3041\u3068\u601d\u3046\u3002\n\n\n\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u958b\u304f\n\n\n\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a00\u3063\u3066\u3082\u3001Docker.app\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3059\u308b\u3060\u3051\u3002<br>\u958b\u3053\u3046\u3068\u3059\u308b\u3068\u3001\u958b\u3044\u3066\u3044\u3044\u304b\u3068\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u300c\u958b\u304f\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<br>\u3059\u308b\u3068\u6b21\u306bDocker Desktop needs privilleged access.\u3068\u3044\u3046\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u3066\u304f\u308b\u306e\u3067OK\u3002<br>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3068Docker helper\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u59cb\u307e\u308a\u300cOur Service Agreement has Changed\u300d\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u300cI accept the terms\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u300cAccept\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu20.04\u306e\u30a4\u30e1\u30fc\u30b8\u53d6\u5f97<\/h2>\n\n\n\n\nubuntu\u306e\u30a4\u30e1\u30fc\u30b8\u53d6\u5f97\n\n\n\n\u276f docker image pull ubuntu:20.04<br>20.04: Pulling from library\/ubuntu<br>ab2d02b1ec42: Pull complete<br>Digest: sha256:9d6a8699fb5c9c39cf08a0871bd6219f0400981c570894cd8cbea30d3424a31f<br>Status: Downloaded newer image for ubuntu:20.04<br>docker.io\/library\/ubuntu:20.04\n\n\n\n\u53d6\u5f97\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u306e\u78ba\u8a8d\n\n\n\n\u276f docker image ls|grep ubuntu|grep 20.04<br>ubuntu 20.04 54ab604fab8d 5 days ago 65.6MB\n\n\n\n\u53d6\u5f97\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u3092\u3082\u3068\u306b\u30b3\u30f3\u30c6\u30ca\u306e\u5b9f\u884c\n\n\n\n\u276f docker container run -it -d &#8211;name ubuntu2004 ubuntu:20.04<br>27fb6b40457c3659f9878e5716a39f9721932cbfad35a018006a5f321b59942e\n\n\n\n\u8d77\u52d5\u4e2d\u306e\u30b3\u30f3\u30c6\u30ca\u78ba\u8a8d\n\n\n\n<meta charset=\"utf-8\">\u276f docker container ls<br>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES<br>27fb6b40457c ubuntu:20.04 &#8220;bash&#8221; 24 seconds ago Up 23 seconds ubuntu2004\n\n\n\n\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"230\" src=\"https:\/\/t-office.blue\/wp-content\/uploads\/2021\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-09-05-10.36.51-1024x230.png\" alt=\"\" class=\"wp-image-911\" srcset=\"https:\/\/wp.t-office.blue\/wp-content\/uploads\/2021\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-09-05-10.36.51-1024x230.png 1024w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2021\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-09-05-10.36.51-300x67.png 300w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2021\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-09-05-10.36.51-768x172.png 768w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2021\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-09-05-10.36.51-1536x345.png 1536w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2021\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-09-05-10.36.51.png 1908w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\n\n<figcaption>docker desktop<\/figcaption>\n\n<\/figure>\n\n\n\ndocker desktop\u306e\u753b\u9762\u306b\u30b3\u30f3\u30c6\u30ca\u304c\u51fa\u3066\u304d\u305f\u3002\u3053\u3053\u307e\u3067\u6765\u305f\u3089\u3001\u3053\u306e\u753b\u9762\u304b\u3089rum\u3001stop\u3067\u304d\u307e\u3059\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">Mac\u306bAnsible\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n\n\u276f brew install ansible\n\n\n\n5\u5206\u3050\u3089\u3044\u304b\u304b\u3063\u305f\u3051\u3069\u3001\u4e00\u767a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002Homebrew\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br>\n\n\n\n\u276f ansible\n\n\n\nzsh: correct &#8216;ansible&#8217; to &#8216;_ansible&#8217; [nyae]? n\n\n\n\n\u306a\u305c\u304b\u3053\u3053\u3067[n]\u3092\u9078\u3070\u306a\u3044\u3068ansible \u4f7f\u3048\u306a\u3044\u3001\u3001\u3001\n\n\n\n\u276f ansible &#8211;version\n\n\n\nansible [core 2.11.4]<br>config file = None<br>configured module search path = [&#8216;\/Users\/tacky2k\/.ansible\/plugins\/modules&#8217;, &#8216;\/usr\/share\/ansible\/plugins\/modules&#8217;]<br>ansible python module location = \/opt\/homebrew\/Cellar\/ansible\/4.5.0\/libexec\/lib\/python3.9\/site-packages\/ansible<br>ansible collection location = \/Users\/tacky2k\/.ansible\/collections:\/usr\/share\/ansible\/collections<br>executable location = \/opt\/homebrew\/bin\/ansible<br>python version = 3.9.6 (default, Jun 28 2021, 19:24:41) [Clang 12.0.5 (clang-1205.0.22.9)]<br>jinja version = 3.0.1<br>libyaml = True\n\n\n\n\u7d9a\u304d\u306f\u6b21\u306e\u8a18\u4e8b\u306b\u3057\u307e\u3059\u3002\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3068\u308a\u3042\u3048\u305a\u3001\u624b\u5143\u306eMacBookAir(M1)\u306bDocker\u3067\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u3063\u3066Ubuntu\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u305d\u3053\u306b\u3001Wordpress\u3092\u5fa9\u5143\u3057\u3066\u307f\u3066\u3001\u3046\u307e\u304f\u884c\u3051\u3070\u305d\u306e\u74b0\u5883\u3092\u3055\u304f\u3089\u306eVPS\u306b\u4f5c\u308b\u3002\u3068\u3044\u3046\u65b9\u5411\u3067\u884c\u3053\u3046\u304b\u306a\u3068\u601d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-910","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=910"}],"version-history":[{"count":1,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/910\/revisions"}],"predecessor-version":[{"id":913,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/910\/revisions\/913"}],"wp:attachment":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}