{"id":5740,"date":"2022-11-03T12:15:43","date_gmt":"2022-11-03T03:15:43","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=5740"},"modified":"2022-12-17T11:42:53","modified_gmt":"2022-12-17T02:42:53","slug":"rocky-linux-9%e3%81%abansible-awx%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/5740","title":{"rendered":"Ansible AWX\uff0817.0.1\uff09\u3092Rocky Linux 9\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01"},"content":{"rendered":"<p>Rocky Linux 9\u306bAnsible AWX\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h2>Ansible\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u5f93\u3044\u3001Ansible\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/5698\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"Ansible\u3092Rocky Linux 9\u306eRoot\u30e6\u30fc\u30b6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/11\/eyecatch_ansible_awx_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">Ansible\u3092Rocky Linux 9\u306eRoot\u30e6\u30fc\u30b6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/div><div class=\"date\">2022.11.1<\/div><div class=\"substr\">Ansible AWX\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u3001root\u30e6\u30fc\u30b6\u306ePython\u306e\u4eee\u60f3\u74b0\u5883\u306b\u3001Ansible\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u74b0\u5883\u306f\u3001Rocky Linux 9\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002 \u30b7\u30b9\u30c6\u30e0\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\uff01 \u30b7\u30b9\u30c6\u30e0\u3092\u6700\u65b0\u5316\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u307e\u3059\u3002 # dnf update ...<\/div><\/a><\/div>\n<h2>Firewalld\u3092\u7121\u52b9\u5316\u3059\u308b\uff01<\/h2>\n<p>Firewalld\u3092\u7121\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# sudo systemctl disable firewalld --now\r\nRemoved \/etc\/systemd\/system\/multi-user.target.wants\/firewalld.service.\r\nRemoved \/etc\/systemd\/system\/dbus-org.fedoraproject.FirewallD1.service.\r\n<\/pre>\n<h2>SELinux\u306e\u52d5\u4f5c\u30e2\u30fc\u30c9\u3092Permissive\u306b\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>SELinux\u306e\u52d5\u4f5c\u30e2\u30fc\u30c9\u3092Permissive\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\/etc\/selinux\/config\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3001OS\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# vi \/etc\/selinux\/config\r\n...\r\nSELINUX=permissive\r\n...\r\n# reboot\r\n<\/pre>\n<p>SELinux\u306e\u52d5\u4f5c\u30e2\u30fc\u30c9\u304cPermissive\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# getenforce\r\nPermissive\r\n<\/pre>\n<h2>Ansible\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u4eee\u60f3\u74b0\u5883\u3092\u6709\u52b9\u5316\u3059\u308b\uff01<\/h2>\n<p>Ansible\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u4eee\u60f3\u74b0\u5883\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# source ~\/ansible\/bin\/activate\r\n<\/pre>\n<h2>Docker Compose\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Docker Compose\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n(ansible) # pip install docker-compose\r\n<\/pre>\n<h2>Docker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Docker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n(ansible) # dnf install --nobest docker-ce -y --allowerasing\r\n<\/pre>\n<h2>Docker CE\u3092\u81ea\u52d5\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>Docker CE\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u5408\u308f\u305b\u3066\u3001\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n(ansible) # systemctl start docker\r\n(ansible) # systemctl enable docker\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/docker.service \u2192 \/usr\/lib\/systemd\/system\/docker.service.\r\n<\/pre>\n<h2>Git\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Git\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n(ansible) # dnf install git -y\r\n<\/pre>\n<h2>Ansible AWX \uff0817.0.1\uff09\u3092GitHub\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\uff01<\/h2>\n<p>Ansible AWX\uff0817.0.1\uff09\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002Ansible AWX\uff0818.0\uff09\u4ee5\u964d\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n(ansible) # git clone https:\/\/github.com\/ansible\/awx -b 17.0.1\r\n<\/pre>\n<h2>Ansible AWX\u306einventory\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\uff01<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u306bAnsible AWX\u306einventory\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n(ansible) # vi awx\/installer\/inventory\r\n...\r\n...\r\nadmin_user=admin\r\nadmin_password=password\r\n...\r\nproject_data_dir=\/var\/lib\/awx\/projects\r\n...\r\n<\/pre>\n<h2>Ansible AWX\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Ansible AWX\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n(ansible) # ansible-playbook -i inventory install.yml\r\n<\/pre>\n<h2>Ansible AWX\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>Ansible AWX\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n(ansible) # docker ps\r\nCONTAINER ID   IMAGE                COMMAND                  CREATED         STATUS         PORTS                                   NAMES\r\n9fa6328dd34d   ansible\/awx:17.0.1   &quot;\/usr\/bin\/tini -- \/u\u2026&quot;   2 minutes ago   Up 2 minutes   8052\/tcp                                awx_task\r\n36a5bc25b501   ansible\/awx:17.0.1   &quot;\/usr\/bin\/tini -- \/b\u2026&quot;   5 minutes ago   Up 2 minutes   0.0.0.0:80-&gt;8052\/tcp, :::80-&gt;8052\/tcp   awx_web\r\ned448eb5e7d5   redis                &quot;docker-entrypoint.s\u2026&quot;   5 minutes ago   Up 2 minutes   6379\/tcp                                awx_redis\r\n879876a7d978   postgres:12          &quot;docker-entrypoint.s\u2026&quot;   5 minutes ago   Up 2 minutes   5432\/tcp                                awx_postgres\r\n<\/pre>\n<h2>Ansible AWX\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\uff01<\/h2>\n<p>Ansible AWX\u306e\u30b5\u30fc\u30d0\u540d\u304c\u3001server01\u306e\u5834\u5408\u3001\u4ee5\u4e0b\u306eURL\u3067Ansible AWX\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nhttp:\/\/server01\/\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Ansible\u3092\u6a5f\u80fd\u62e1\u5f35\u3059\u308bAnsible AWX\uff0817.0.1\uff09\u3092Docker CE\u74b0\u5883\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002Ansible AWX \uff0818.0\uff09\u4ee5\u964d\u306f\u3001Kubernates\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306a\u308b\u306e\u3067\u3001\u5225\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/ansible\/awx\" target=\"_blank\" rel=\"noopener\">Ansible AWX - GitHub<\/a><\/li>\n<li><a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/index.html\" target=\"_blank\" rel=\"noopener\">Ansible Documentation<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/6710\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ansible\u3067\u69cb\u6210\u7ba1\u7406\u3092\u884c\u3046\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/12\/eyecatch_ansible_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ansible\u3067\u69cb\u6210\u7ba1\u7406\u3092\u884c\u3046\uff01<\/div><div class=\"substr\">Ansible\u3067\u30b7\u30b9\u30c6\u30e0\u306e\u69cb\u6210\u7ba1\u7406\u3092\u884c\u3046\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>Ansible\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<h3>Ansible\u5b9f\u8df5\u30ac\u30a4\u30c9 \u7b2c3\u7248 impress top gear\u30b7\u30ea\u30fc\u30ba<\/h3>\n<p><iframe style=\"width: 120px; height: 240px;\" sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=infotecr-22&amp;language=ja_JP&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B07YXYM94G&amp;linkId=c592827d0a9befa45003dc1710db5e20\"><\/iframe><\/p>\n<h3>Ansible\u30af\u30c3\u30af\u30d6\u30c3\u30af impress top gear\u30b7\u30ea\u30fc\u30ba<\/h3>\n<p><iframe style=\"width: 120px; height: 240px;\" sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=infotecr-22&amp;language=ja_JP&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B09V4HW2LW&amp;linkId=57f8d97a138faaedd2db76907303fa17\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9\u306bAnsible AWX\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 Ansible\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01 \u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u5f93\u3044\u3001Ansible\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 Firewalld\u3092\u7121\u52b9\u5316\u3059\u308b\uff01 Firewalld\u3092\u7121\u52b9\u5316\u3057\u307e\u3059\u3002 # \u2026<\/p>\n","protected":false},"author":1,"featured_media":6882,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[157],"tags":[],"class_list":["post-5740","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ansible"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=5740"}],"version-history":[{"count":0,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5740\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/6882"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=5740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=5740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=5740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}