This installation mode has been tested on macOS Sequoia.
Before starting, you have to allow Full Disk Access for Terminal app. You can setup this in Privacy & Security > Full Disk Access.
In order to save time, you can run ./setup.sh directly on your mac.
Otherwise, you can run the following commands:
- Install macOS command line and homebrew :
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- Install Ansible
brew install ansible- Clone this repository
git clone https://github.com/axinorm/macbook-setup
cd macbook-setup- Update
inventory/group_vars/mymac.ymland runsetup.ymlplaybook
ansible-playbook setup.yml --inventory inventory/hosts --ask-become-passosx_defaults :
Dock :
macOS App Store :
Global settings with Shell scripts :
Don't hesitate to read the following blog posts to find out more about configuring macOS with Ansible:
- I use Ansible to configure macOS! - English version
- Je configure macOS avec Ansible ! - French version