{"id":48277707,"url":"https://github.com/bolinocroustibat/machines-configs","last_synced_at":"2026-04-04T22:38:24.565Z","repository":{"id":241540065,"uuid":"806568017","full_name":"bolinocroustibat/machines-configs","owner":"bolinocroustibat","description":"Ansible playbooks for setting up local development and remote machines.","archived":false,"fork":false,"pushed_at":"2026-04-03T11:39:01.000Z","size":1056,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T14:49:02.688Z","etag":null,"topics":["ansible","ansible-playbook","devops"],"latest_commit_sha":null,"homepage":"","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/bolinocroustibat.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2024-05-27T12:53:40.000Z","updated_at":"2026-04-03T11:39:10.000Z","dependencies_parsed_at":"2024-05-29T00:59:38.741Z","dependency_job_id":"b71705cc-8d53-47ca-adc0-dc8ab1acb99f","html_url":"https://github.com/bolinocroustibat/machines-configs","commit_stats":null,"previous_names":["bolinocroustibat/dotfiles","bolinocroustibat/machines-configs"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/bolinocroustibat/machines-configs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolinocroustibat%2Fmachines-configs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolinocroustibat%2Fmachines-configs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolinocroustibat%2Fmachines-configs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolinocroustibat%2Fmachines-configs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bolinocroustibat","download_url":"https://codeload.github.com/bolinocroustibat/machines-configs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolinocroustibat%2Fmachines-configs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31417237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["ansible","ansible-playbook","devops"],"created_at":"2026-04-04T22:38:20.517Z","updated_at":"2026-04-04T22:38:24.555Z","avatar_url":"https://github.com/bolinocroustibat.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Machines configs and dotfiles\n\nAnsible playbooks for setting up local development and remote machines.\n\n## 📦 Dependencies\n\n- Python \u003e= 3.10 (automatically installed via [uv](https://docs.astral.sh/uv/))\n- [Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) (automatically installed via [uv](https://docs.astral.sh/uv/))\n- [git-crypt](https://www.agwa.name/projects/git-crypt/)\n\n## 🚀 Installation\n\nUse [uv](https://docs.astral.sh/uv/) to install [Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) from the locked requirements:\n\n```bash\ncd machines-configs\nuv sync\n```\n\n## 📖 Usage\n\nDry run a playbook:\n```bash\nuv run ansible-playbook playbooks/install-local-macos.yaml --check\n```\n\nRun a playbook:\n```bash\nuv run ansible-playbook playbooks/install-local-macos.yaml\n```\n\n**Notes:**\n- No need to add `-i inventory.yaml` as it is already configured in `ansible.cfg`.\n- No need to add `--diff` as it is already configured in `ansible.cfg`.\n\n## 🔐 Encrypt and decrypt secrets\n\n### git-crypt\n\nThis repo uses exclusively [git-crypt](https://www.agwa.name/projects/git-crypt/) to encrypt and decrypt secrets.\n\nEncrypted files are defined in `.gitattributes`.\n\n**One-time setup:** run `git-crypt init` once in the repo (e.g. when creating it or when enabling encryption). After cloning, use the shared key and run `git-crypt unlock` to decrypt secrets locally.\n\nTo get the git-crypt status:\n```bash\ngit-crypt status\n```\n\n### ansible-vault\n\nAs said, this repo uses exclusively [git-crypt](https://www.agwa.name/projects/git-crypt/) to encrypt and decrypt secrets. However, we could also use [ansible-vault](https://docs.astral.sh/ansible-vault/) to encrypt and decrypt secrets:\n\nDecrypt secret files with:\n```bash\nuvx ansible-vault decrypt roles/myrole/templates/secret.j2 roles/myrole2/templates/*\n```\n\nEncrypt secret files with:\n```bash\nuvx ansible-vault encrypt roles/myrole/templates/secret.j2 roles/myrole2/templates/*\n```\n\n## ✨ Lint\n\nLint Ansible file with [ansible-lint](https://docs.astral.sh/ansible-lint/):\n```bash\nuvx ansible-lint playbooks/myplaybook.yaml\n```\n\nLint and format Python code with [Ruff](https://docs.astral.sh/ruff/):\n```bash\nuvx ruff check \u0026\u0026 uvx ruff format\n```\n\n## 🤖 CI (GitHub Actions)\n\nOn push and pull requests to `main`, GitHub Actions runs:\n\n- **ansible-lint** on the whole repository (playbooks and roles)\n- **Ruff** (check and format) for Python and config files\n\nThis enforces the same standards as pre-commit so the main branch stays lint-clean even when commits are made without running hooks locally.\n\n## 🪝 Pre-commit\n\nThis repository uses [pre-commit](https://pre-commit.com/) to lint and format code before committing.\nPlease install pre-commit hooks with the following command:\n```bash\nuvx pre-commit install\n```\n\n## 📋 Precedence of Ansible variables\n\nAnsible variables have the following precedence:\n\n1. Vars set on the command line, e.g.: `-e foo=set_on_cmd_line`\n2. Vars set in the vars_files: block in the play\n3. Vars set in the vars: block in the play\n4. Vars set in `host_vars/`\n5. Vars set in `group_vars/`\n6. Role default vars e.g. `roles/.../defaults/main.yml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolinocroustibat%2Fmachines-configs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolinocroustibat%2Fmachines-configs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolinocroustibat%2Fmachines-configs/lists"}