{"id":16598595,"url":"https://github.com/snickerjp/ansible-handson","last_synced_at":"2026-03-10T13:05:48.579Z","repository":{"id":31281956,"uuid":"34843907","full_name":"snickerjp/ansible-handson","owner":"snickerjp","description":"Ansible ハンズオンの手順書","archived":false,"fork":false,"pushed_at":"2015-05-01T03:49:53.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T15:13:23.528Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snickerjp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-30T08:42:00.000Z","updated_at":"2015-04-30T08:42:00.000Z","dependencies_parsed_at":"2022-09-09T07:40:39.476Z","dependency_job_id":null,"html_url":"https://github.com/snickerjp/ansible-handson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/snickerjp/ansible-handson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snickerjp%2Fansible-handson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snickerjp%2Fansible-handson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snickerjp%2Fansible-handson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snickerjp%2Fansible-handson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snickerjp","download_url":"https://codeload.github.com/snickerjp/ansible-handson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snickerjp%2Fansible-handson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30334412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T00:09:03.144Z","updated_at":"2026-03-10T13:05:48.558Z","avatar_url":"https://github.com/snickerjp.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-handson\nAnsible ハンズオンの手順書\n\n---\n\n```\nVagrant でやるのは、「まだ時間がかかったり」「つまったり」する可能性があるので・・・\nとりあえず『Ansible』が動くようにする\n```\n\n\n## 流れ\n\n### Ansible の Playbook を実行するマシン (ansible-setup)\n- 仮想マシンの起動(AWSなど)\n- host名を設定する\n- `git` のインストール\n- `Ansible` のインストール\n- `private key`の配置\n- (optional) `Vagrant` のセットアップ\n\n### 構成管理されるマシン(slave)\n- 仮想マシンの起動(AWSなど)\n\n--- \n\n## 『Ansible の Playbook を実行するマシン (ansible-setup) 』のセットアップ\n\n### 仮想マシンの起動(AWSなど)\n\n- クラウド、VMWareなどで、仮想マシンを立ち上げる\n- その際、鍵認証用の`private key` を作成する\n- 手元に`private key` を落としておく\n\n### host名を設定する\n\nわからなくなっちゃうので、ホスト名を設定します\n```\nsudo hostname ansible-setup\n```\n\n### git のインストール\n\n```\nsudo yum update -y\nsudo yum install git\n```\n\n### Ansible のインストール\n\n#### Amazon Linuxの場合\n\nAmazon Linuxの場合は、EPELで入れると余計なパッケージ(python26)が追加されるので、pipで！\n```\nsudo pip install ansible\n```\n\n#### CentOS(epel)の場合\n\n思いのほか`EPEL`のパッケージが新しかったのでyumで！\n```\nsudo yum install http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm\nsudo yum --enablerepo=epel install ansible\n```\n### private key の配置\n\n今、立ち上げたマシン(ansible-setup)で\n\n```\ncp private.pem ~/.ssh/id_rsa\nchmod 400 ~/.ssh/id_rsa\n```\n--- \n\n## 『構成管理されるマシン(slave)』のセットアップ\n\n### 仮想マシンの起動(AWSなど)\n\n- クラウド、VMWareなどで、仮想マシンを立ち上げる\n- その際、鍵認証用の`private key` を同じで `public key` を設定する\n\n### host名を設定する\n\nわからなくなっちゃうので、ホスト名を設定します\n```\nsudo vi /etc/sysconfig/network\n\nHOSTNAME=slave\n\nsudo hostname slave\n```\n\n\n### 『Ansible チュートリアル』をもとに作業する\n\n[Ansible チュートリアル | Ansible Tutorial in Japanese](http://yteraoka.github.io/ansible-tutorial/)\n\n\nを参考に作業を進める！\n\n『3. Ansible の疎通確認』 以降からの作業で大丈夫なはずー\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnickerjp%2Fansible-handson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnickerjp%2Fansible-handson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnickerjp%2Fansible-handson/lists"}