{"id":44095156,"url":"https://github.com/bauer-group/iac-ansible","last_synced_at":"2026-05-03T01:02:48.270Z","repository":{"id":337209295,"uuid":"1152639530","full_name":"bauer-group/IAC-Ansible","owner":"bauer-group","description":"Infrastructure as Code with Ansible configuration management for BAUER GROUP.","archived":false,"fork":false,"pushed_at":"2026-04-11T23:19:01.000Z","size":184,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T00:49:00.216Z","etag":null,"topics":["infrastructure-as-code"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bauer-group.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-08T07:20:10.000Z","updated_at":"2026-04-11T23:19:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bauer-group/IAC-Ansible","commit_stats":null,"previous_names":["bauer-group/iac-ansible"],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/bauer-group/IAC-Ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauer-group%2FIAC-Ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauer-group%2FIAC-Ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauer-group%2FIAC-Ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauer-group%2FIAC-Ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bauer-group","download_url":"https://codeload.github.com/bauer-group/IAC-Ansible/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauer-group%2FIAC-Ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31907728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["infrastructure-as-code"],"created_at":"2026-02-08T12:09:57.489Z","updated_at":"2026-05-03T01:02:48.264Z","avatar_url":"https://github.com/bauer-group.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IAC-Ansible\n\nInfrastructure as Code with Ansible - Git-based configuration management for BAUER GROUP.\n\n## Quick Start\n\n### Bootstrap a Server (One-Liner)\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/bauer-group/IAC-Ansible/main/scripts/install.sh | bash\n```\n\n### Bootstrap with Inventory Hostname\n\nFor new hosts whose system hostname does not yet match the inventory entry\n(e.g. a fresh provider image), set `IAC_HOSTNAME` so `ansible-pull` finds the\ncorrect `host_vars/\u003cname\u003e.yml` on the first run:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/bauer-group/IAC-Ansible/main/scripts/install.sh | \\\n  IAC_HOSTNAME=0047-20.cloud.bauer-group.com bash\n```\n\nThe installer runs `hostnamectl`, updates `/etc/hosts` and writes\n`preserve_hostname: true` to `/etc/cloud/cloud.cfg` before the initial pull.\nIdempotent — re-running with the same value is a no-op.\n\n### Cloud-Init\n\n```yaml\n#cloud-config\nruncmd:\n  - curl -fsSL https://raw.githubusercontent.com/bauer-group/IAC-Ansible/main/scripts/install.sh | bash\n```\n\n### Control Machine\n\n```bash\ngit clone https://github.com/bauer-group/IAC-Ansible.git\ncd IAC-Ansible\nmake setup\nmake deploy\n```\n\n## Architecture\n\n```\nGitHub Repo  ──pull──\u003e  Server A (ansible-pull, systemd timer)\n             ──pull──\u003e  Server B (ansible-pull, systemd timer)\n             ──pull──\u003e  Server C ...\n```\n\nEach server checks this Git repository daily for changes and applies them automatically. Alternatively, an immediate push can be triggered.\n\n## Usage\n\n```bash\nmake help                                      # Show all commands\nmake deploy                                    # Configure all servers\nmake deploy LIMIT=0046-20.cloud.bauer-group.com  # Specific host\nmake deploy LIMIT=\"*.bauer-group.com\"          # Wildcard\nmake update                                    # Run system updates\nmake check                                     # Dry-run\nmake push LIMIT=\u003chost\u003e                         # Trigger immediate update\n```\n\n## Filtering\n\n| Method | Example |\n| --- | --- |\n| Hostname | `LIMIT=server.example.com` |\n| Wildcard | `LIMIT=\"*.bauer-group.com\"` |\n| IP range | `LIMIT=\"192.168.1.*\"` |\n| Group | `LIMIT=auto_update` |\n| Label | `LABEL=production` |\n| Service | `SERVICE=nginx` |\n| Tags | `TAGS=update` |\n\n## Directory Structure\n\n```\ninventory/         Hosts and variables (per environment)\nplaybooks/         Ansible playbooks\nroles/             Reusable roles\n  common/          Base configuration (all hosts)\n  auto_update/     Automatic system updates\n  ansible_pull/    Git-based pull mechanism\n  k0s/             Bare-metal Kubernetes (multi-cluster, VLAN or WG mesh)\n  secondary_dns/   PowerDNS authoritative secondary (NOTIFY/AXFR slave)\nscripts/           Bootstrap and helper scripts\nfilter_plugins/    Custom Jinja2 filters\ndocs/              Documentation\n```\n\n## First Workflow: Auto-Updates\n\nThe host `0046-20.cloud.bauer-group.com` (Ubuntu 24.04) is configured with:\n\n- **Updates**: Daily at 02:00 (all packages or security-only, configurable)\n- **Reboot**: Sundays at 03:00 (only when required)\n- **Control**: Centrally managed in `inventory/production/group_vars/all/update_settings.yml`\n\nSwitch between all updates and security-only:\n\n```yaml\n# inventory/production/group_vars/all/update_settings.yml\nauto_update_type: \"all\"       # All updates\nauto_update_type: \"security\"  # Security updates only\n```\n\n## Documentation\n\n- [Architecture](docs/architecture.md)\n- [Server Naming \u0026 Coding Scheme](docs/server-naming.md)\n- [Quickstart](docs/quickstart.md)\n- [Filtering](docs/filtering.md)\n- [Auto-Updates](docs/auto-updates.md)\n- [Cloud-Init](docs/cloud-init.md)\n- [Inventory Management](docs/inventory-management.md)\n- [Secrets Management](docs/vault.md)\n- [Host Onboarding](docs/host-onboarding.md)\n- [Workflows](docs/workflows.md)\n- [Troubleshooting](docs/troubleshooting.md)\n- [k0s — Bare-Metal Kubernetes](docs/k0s-architecture.md)\n- [Secondary DNS (PowerDNS)](docs/secondary-dns.md)\n- [Contributing](CONTRIBUTING.md)\n\n## Platforms\n\n| OS | Versions | Status |\n| --- | --- | --- |\n| Ubuntu | 22.04 LTS, 24.04 LTS, 26.04 LTS | Supported |\n| Debian | 13 (trixie) | Supported |\n| RHEL | 9, 10 | Supported |\n| Rocky Linux | 9, 10 | Supported |\n| AlmaLinux | 9, 10 | Supported |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbauer-group%2Fiac-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbauer-group%2Fiac-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbauer-group%2Fiac-ansible/lists"}