{"id":13587783,"url":"https://github.com/geerlingguy/ansible-collection-mac","last_synced_at":"2025-10-16T09:50:39.599Z","repository":{"id":37586813,"uuid":"372105249","full_name":"geerlingguy/ansible-collection-mac","owner":"geerlingguy","description":"Collection of macOS automation tools for Ansible.","archived":false,"fork":false,"pushed_at":"2025-03-26T14:32:55.000Z","size":90,"stargazers_count":339,"open_issues_count":17,"forks_count":116,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-24T21:06:01.915Z","etag":null,"topics":["ansible","collection","configuration","homebrew","mac","macos","osx","roles"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/geerlingguy/mac","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/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2021-05-30T02:11:57.000Z","updated_at":"2025-05-19T19:05:54.000Z","dependencies_parsed_at":"2024-02-05T16:27:25.329Z","dependency_job_id":"361ff8d1-0063-4831-8c38-2c4a1c3e4587","html_url":"https://github.com/geerlingguy/ansible-collection-mac","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/geerlingguy/ansible-collection-mac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-collection-mac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-collection-mac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-collection-mac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-collection-mac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/ansible-collection-mac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-collection-mac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279174900,"owners_count":26119353,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"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","collection","configuration","homebrew","mac","macos","osx","roles"],"created_at":"2024-08-01T15:06:21.630Z","updated_at":"2025-10-16T09:50:39.557Z","avatar_url":"https://github.com/geerlingguy.png","language":"Shell","funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":["Shell"],"sub_categories":[],"readme":"# Mac Collection for Ansible\n\n[![MIT licensed][badge-license]][link-license]\n[![Galaxy Collection][badge-collection]][link-galaxy]\n[![CI][badge-gh-actions]][link-gh-actions]\n\nThis collection includes helpful Ansible roles and content to help with macOS automation. For a good example of the collection's usage, see the [Mac Dev Playbook](https://github.com/geerlingguy/mac-dev-playbook).\n\nRoles included in this collection (click on the link to see the role's README and documentation):\n\n  - `geerlingguy.mac.homebrew` ([documentation](https://github.com/geerlingguy/ansible-collection-mac/blob/master/roles/homebrew/README.md))\n  - `geerlingguy.mac.mas` ([documentation](https://github.com/geerlingguy/ansible-collection-mac/blob/master/roles/mas/README.md))\n  - `geerlingguy.mac.dock` ([documentation](https://github.com/geerlingguy/ansible-collection-mac/blob/master/roles/dock/README.md))\n\n## Installation\n\nInstall via Ansible Galaxy:\n\n```\nansible-galaxy collection install geerlingguy.mac\n```\n\nOr include this collection in your playbook's `requirements.yml` file:\n\n```\n---\ncollections:\n  - name: geerlingguy.mac\n```\n\nFor a real-world example, see my [Mac Dev Playbook's requirements file](https://github.com/geerlingguy/mac-dev-playbook/blob/master/requirements.yml).\n\n### Role Requirements\n\nRequires separate installation of the `elliotweiser.osx-command-line-tools` role. Because Ansible collections are not able to depend on roles, you will need to make sure that role is installed either by manually installing it with the `ansible-galaxy` command, or adding it under the `roles` section of your `requirements.yml` file:\n\n```yaml\n---\nroles:\n  - name: elliotweiser.osx-command-line-tools\n\ncollections:\n  - name: geerlingguy.mac\n```\n\n## Usage\n\nHere's an example playbook which installs some Mac Apps (assuming you are signed into the App Store), CLI tools via Homebrew, and Cask Apps using Homebrew:\n\n```yaml\n- hosts: localhost\n  connection: local\n  gather_facts: false\n\n  vars:\n    mas_installed_app_ids:\n      - 424389933 # Final Cut Pro\n      - 497799835 # Xcode\n\n    homebrew_installed_packages:\n      - node\n      - nvm\n      - redis\n      - ssh-copy-id\n      - pv\n\n    homebrew_cask_apps:\n      - docker\n      - firefox\n      - google-chrome\n      - vlc\n\n  roles:\n    - geerlingguy.mac.homebrew\n    - geerlingguy.mac.mas\n```\n\nFor a real-world usage example, see my [Mac Dev Playbook](https://github.com/geerlingguy/mac-dev-playbook).\n\nSee the full documentation for each role in the role's README, linked above.\n\n## License\n\nMIT\n\n## Author\n\nThis collection was created by [Jeff Geerling](https://www.jeffgeerling.com), author of [Ansible for DevOps](https://www.ansiblefordevops.com).\n\n[badge-gh-actions]: https://github.com/geerlingguy/ansible-collection-mac/workflows/CI/badge.svg?event=push\n[link-gh-actions]: https://github.com/geerlingguy/ansible-collection-mac/actions?query=workflow%3ACI\n[badge-collection]: https://img.shields.io/badge/collection-geerlingguy.mac-blue\n[link-galaxy]: https://galaxy.ansible.com/geerlingguy/mac\n[badge-license]: https://img.shields.io/github/license/geerlingguy/ansible-collection-mac.svg\n[link-license]: https://github.com/geerlingguy/ansible-collection-mac/blob/master/LICENSE\n[badge-gh-actions]: https://github.com/geerlingguy/ansible-role-homebrew/workflows/CI/badge.svg?event=push\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-collection-mac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fansible-collection-mac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-collection-mac/lists"}