{"id":15759381,"url":"https://github.com/pegasd/macos-config-playbook","last_synced_at":"2026-02-04T02:39:21.295Z","repository":{"id":202980914,"uuid":"139359073","full_name":"pegasd/macos-config-playbook","owner":"pegasd","description":"Ansible playbook for managing my macOS setup","archived":false,"fork":false,"pushed_at":"2024-06-07T10:19:58.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-07T12:25:11.104Z","etag":null,"topics":["ansible","homebrew","macos"],"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/pegasd.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}},"created_at":"2018-07-01T20:15:54.000Z","updated_at":"2024-07-08T10:38:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"0f0f427f-a9a7-4eaa-8af6-73fe6c90d9cc","html_url":"https://github.com/pegasd/macos-config-playbook","commit_stats":{"total_commits":163,"total_committers":2,"mean_commits":81.5,"dds":"0.11042944785276076","last_synced_commit":"0aa577e6e24a08e4b761b86a14fe35f8a5b393ae"},"previous_names":["pegasd/macos-config-playbook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fmacos-config-playbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fmacos-config-playbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fmacos-config-playbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fmacos-config-playbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pegasd","download_url":"https://codeload.github.com/pegasd/macos-config-playbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246695050,"owners_count":20819203,"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":["ansible","homebrew","macos"],"created_at":"2024-10-04T10:05:00.338Z","updated_at":"2026-02-04T02:39:21.254Z","avatar_url":"https://github.com/pegasd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macos-config-playbook\n\n[![Build Status](https://travis-ci.org/pegasd/macos-config-playbook.svg?branch=master)](https://travis-ci.org/pegasd/macos-config-playbook)\n\n## Installation\n\nPre-requisites:\n\n- Xcode Command-Line Tools:\n\n```bash\nxcode-select --install\n```\n\n- homebrew\n\n```bash\n# Looks scary, but does the job\n/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n```\n\n- ansible\n\n```bash\nbrew install ansible\n```\n\n- sudoers with `NOPASSWD: ALL` (some of the tasks require `become: yes` and will fail if sudo asks for a password).\n\n```diff\n- %admin  ALL = (ALL) ALL\n+ %admin  ALL = (ALL) NOPASSWD: ALL\n```\n\n## Running\n\nTo run the playbook:\n\n```bash\nansible-playbook main.yaml\n```\n\n### dotfiles\n\nThis is configured to install and update the [following dotfiles repository](https://github.com/pegasd/dotfiles).\n\n### defaults\n\nMost of the `defaults` configuration is done through `tasks/osx_defaults.yaml`.\n\nUnfortunately, Ansible is lacking `dict` and `dict-add` support (despite a well done [PR](https://github.com/ansible/ansible/issues/24028)) in its `osx_defaults` module, so there are a couple of scripts that can be run manually:\n\n```bash\nfiles/other_defaults\nfiles/spotlight\n```\n\n**files/other_defaults**\n\n- Custom keyboard shortcuts require `dict-add`.\n- Screenshot location (it has `~` in it) is expanded at runtime and is not idempotent.\n\n**files/spotlight**\n\n- Spotlight configuration removes all volumes but `/` from indexing configuration and re-builds index on `/`.\n- I don't recommend running this often.\n\n## Issues\n\nThis might be a Mojave Beta-only issue, but `defaults write` treats all passed values as strings (whether they should be booleans,\nintegers, or floats) in a construct like this:\n\n```bash\ndefaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 60 \"{ enabled = 1; value = { type = standard; parameters = ( 32, 49, 1048576 ); }; }\"\n```\n\nso I have to pass all values in XML format.\n\n## Contributing\n\nFeel free to submit issues, PRs, or just comment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegasd%2Fmacos-config-playbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpegasd%2Fmacos-config-playbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegasd%2Fmacos-config-playbook/lists"}