{"id":19396133,"url":"https://github.com/ruanbekker/ansible-primer","last_synced_at":"2026-06-12T18:33:34.761Z","repository":{"id":46748360,"uuid":"394105920","full_name":"ruanbekker/ansible-primer","owner":"ruanbekker","description":"Ansible Primer Repo","archived":false,"fork":false,"pushed_at":"2022-07-19T15:27:44.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T06:33:35.751Z","etag":null,"topics":["ansible","configuration-management"],"latest_commit_sha":null,"homepage":"https://ruan.dev","language":"Jinja","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/ruanbekker.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":"2021-08-09T01:07:17.000Z","updated_at":"2022-05-30T13:14:29.000Z","dependencies_parsed_at":"2022-08-28T08:12:17.498Z","dependency_job_id":null,"html_url":"https://github.com/ruanbekker/ansible-primer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ruanbekker/ansible-primer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fansible-primer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fansible-primer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fansible-primer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fansible-primer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruanbekker","download_url":"https://codeload.github.com/ruanbekker/ansible-primer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fansible-primer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34258368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ansible","configuration-management"],"created_at":"2024-11-10T10:33:47.603Z","updated_at":"2026-06-12T18:33:34.746Z","avatar_url":"https://github.com/ruanbekker.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-primer\nAnsible Primer Repo\n\n## About\n\nThis is my ansible primer repository that I've put together to reference when I need it.\n\n## What does it do\n\nThis example includes a ansible role called \"promtail-for-linux\" wich installs the [grafana promtail](https://grafana.com/docs/loki/latest/clients/promtail/) agent on 3 nodes, which is grouped into 3 groups:\n\n- `[prod]    prod.example.com`\n- `[staging] staging.example.com`\n- `[dev]     dev.example.com`\n\nIt requires a [Grafana Loki](https://grafana.com/oss/loki/) server, but it's beyond the scope of this example.\n\n## Project Structure\n\nThe directory structure generated with `tree`:\n\n```bash\n.\n├── EXTRAS.md\n├── README.md\n├── ansible.cfg\n├── group_vars\n│   ├── dev\n│   │   └── vars\n│   ├── prod\n│   │   └── vars\n│   └── staging\n│       └── vars\n├── host_vars\n│   ├── dev.example.com\n│   │   └── vars\n│   ├── prod.example.com\n│   │   └── vars\n│   └── staging.example.com\n│       └── vars\n├── hosts\n├── playbooks\n│   └── promtail.yml\n└── roles\n    └── promtail-for-linux\n        ├── defaults\n        │   └── main.yml\n        ├── files\n        │   └── promtail.service\n        ├── handlers\n        │   └── main.yml\n        ├── tasks\n        │   ├── main.yml\n        │   └── task-ubuntu.yml\n        ├── templates\n        │   └── linux-promtail-config.yml.j2\n        └── vars\n            └── main.yml\n\n17 directories, 18 files\n```\n\n## Usefil Tips\n\nVariable Precendence (only the ones I'm interested in - see the docs at the bottom for a detailed overview):\n\n```\n1. Role defaults (\u003crole-name\u003e/defaults/main.yml) \n2. Inventory file or script group vars\n3. Playbook group_vars\n4. Playbook host_vars\n5. Role vars (defined in \u003crole-name\u003e/vars/main.yml)\n6. Task vars (only for the task)\n7. Extra vars (-e \"foo=bar\") (always win precedence)\n```\n\n## Useful Documentation\n\n- [Variable Precedence](https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruanbekker%2Fansible-primer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruanbekker%2Fansible-primer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruanbekker%2Fansible-primer/lists"}