{"id":19476253,"url":"https://github.com/pgaref/ansible_collection","last_synced_at":"2025-10-16T23:03:56.023Z","repository":{"id":74272431,"uuid":"59381166","full_name":"pgaref/ansible_collection","owner":"pgaref","description":"A repository with a number of ansible playbooks and roles that made my daily cluster management tasks easier!","archived":false,"fork":false,"pushed_at":"2016-05-23T19:42:08.000Z","size":460,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"public","last_synced_at":"2025-01-08T06:35:45.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/pgaref.png","metadata":{"files":{"readme":"README-Tutorial/inventory.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-21T20:58:47.000Z","updated_at":"2021-09-25T21:22:52.000Z","dependencies_parsed_at":"2023-07-12T05:00:41.948Z","dependency_job_id":null,"html_url":"https://github.com/pgaref/ansible_collection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaref%2Fansible_collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaref%2Fansible_collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaref%2Fansible_collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaref%2Fansible_collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgaref","download_url":"https://codeload.github.com/pgaref/ansible_collection/tar.gz/refs/heads/public","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240701173,"owners_count":19843653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-10T19:38:00.824Z","updated_at":"2025-10-16T23:03:50.991Z","avatar_url":"https://github.com/pgaref.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible tutorial\n================\n\n# Inventory\n\nBefore continuing, you need an inventory file. The default place for such a\nfile is  `/etc/ansible/hosts`. However, you can configure ansible to look\nsomewhere else, use an environment variable (`ANSIBLE_HOSTS`), or use the `-i`\nflag in ansible commands an provide the inventory path.\n\nWe've created an inventory file for you in the directory that looks like this:\n\n```bash\nhost0.example.org ansible_host=192.168.33.10 ansible_user=root\nhost1.example.org ansible_host=192.168.33.11 ansible_user=root\nhost2.example.org ansible_host=192.168.33.12 ansible_user=root\n```\n\n`ansible_host` is a special _variable_ that sets the IP ansible will use \nwhen trying to connect to this host. It's not necessary here if you use the \nvagrant-hostmaster gem. Also, you'll have to change the IPs if you have set \nup your own virtual machines with different addresses.\n\n`ansible_user` is another special _variable_ that tells ansible to\nconnect as this user when using ssh. By default ansible would use your\ncurrent username, or use another default provided in ~/.ansible.cfg\n(`remote_user`).\n\n# Testing\n\nNow that ansible is installed, let's check everything works properly.\n\n```bash\nansible -m ping all -i step-01/hosts\n```\n\nWhat ansible will try to do here is just executing the `ping` module (more on\nmodules later) on each host.\n\nThe output should look like this:\n\n```json\nhost0.example.org | success \u003e\u003e {\n    \"changed\": false, \n    \"ping\": \"pong\"\n}\n\nhost1.example.org | success \u003e\u003e {\n    \"changed\": false, \n    \"ping\": \"pong\"\n}\n\nhost2.example.org | success \u003e\u003e {\n    \"changed\": false, \n    \"ping\": \"pong\"\n}\n```\n\nGood! All 3 hosts are alive and kicking, and ansible can talk to them.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaref%2Fansible_collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgaref%2Fansible_collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaref%2Fansible_collection/lists"}