{"id":19418943,"url":"https://github.com/Dalokae/mac-playbook","last_synced_at":"2025-04-24T13:35:22.529Z","repository":{"id":36666326,"uuid":"152541867","full_name":"Dalokae/mac-playbook","owner":"Dalokae","description":"🖥   Mac setup and configuration via Ansible","archived":false,"fork":false,"pushed_at":"2025-03-26T08:50:30.000Z","size":412,"stargazers_count":6,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T06:12:28.351Z","etag":null,"topics":["ansible","macos"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/Dalokae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2018-10-11T06:27:52.000Z","updated_at":"2025-03-26T08:50:34.000Z","dependencies_parsed_at":"2023-09-27T19:14:57.695Z","dependency_job_id":"9f955d31-1eea-4231-b0d7-c421745b0c71","html_url":"https://github.com/Dalokae/mac-playbook","commit_stats":null,"previous_names":["dalokae/mac-playbook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dalokae%2Fmac-playbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dalokae%2Fmac-playbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dalokae%2Fmac-playbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dalokae%2Fmac-playbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dalokae","download_url":"https://codeload.github.com/Dalokae/mac-playbook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250636767,"owners_count":21463131,"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","macos"],"created_at":"2024-11-10T13:15:41.562Z","updated_at":"2025-04-24T13:35:22.518Z","avatar_url":"https://github.com/Dalokae.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mac Ansible Playbook\n\nThe Web server (nginx), PHP and the services (MariaDB, PostgreSQL, Mailpit) are installed locally with Ansible.\n\nAll the management of the system (configuration, update, etc) goes through this tool which allows everyone to have a similar environment.\n\n## Install\n\nYou must first clone the repository to setup the environment.\n\n```shell\n$ xcode-select --install\n$ git clone https://github.com/Dalokae/mac-playbook.git ~/.mac-playbook\n# With SSH\n$ git clone git@github.com:Dalokae/mac-playbook.git ~/.mac-playbook\n```\n\nThen you have to configure the environment:\n\n```shell\n$ cd ~/.mac-playbook\n$ touch config.yml\n$ vim config.yml\n```\n\nYou can look in the file `default.config.yml` to customize your environment.\n\nExample :\n\n```yaml\n---\n############\n# SYSTEM   #\n############\n\nedit_dev_config_with: code\n\nhomebrew_cask_packages:\n  - tableplus\n  - iterm2\n  - alfred\n  - code\n\n############\n# dotfiles #\n############\n\nzsh_theme: agnoster\n\n#########\n# GIT   #\n#########\n\ngit_user_name: John Doe\ngit_user_email: john@doe.fr\n\n###########\n# Nginx   #\n###########\n\nnginx_sites:\n  - name: wallabag\n    server_name: wallabag.localhost\n    type: symfony\n    root: \"~/dev/wallabag/web\"\n    php_version: '8.3'\n```\n\nHomebrew is needed, see https://brew.sh/ to install it.\n\nThen :\n\n```shell\n# Edit your bashrc or zshrc to include \"export PIPX_HOME=$HOME/.local/pipx\"\n# To bootstrap with a specific Ansible version: make bootstrap ansible_version_spec=\"\u003c2.18\"\n$ make bootstrap\n$ make setup-mkcert\n```\n\nAnd to finish : reboot the computer.\n\nFrom there, you can use the **dev** binary to manage the environment.\n\n## Save password\n\nTo avoid having to enter the SUDO password all the time we will encrypt our SUDO password with a password that will be stored in the keychain :\n\n```shell\n$ ./scripts/generate-ansible-password\n```\n\n## Usages\n\nTo list all commands just type `dev`.\n\n## License\n\n[mac-playbook](https://github.com/Dalokae/mac-playbook) is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDalokae%2Fmac-playbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDalokae%2Fmac-playbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDalokae%2Fmac-playbook/lists"}