Skip to content

An ansible-playbook to provision macOS

Notifications You must be signed in to change notification settings

shotarok/macos-provisioning

Repository files navigation

lint ansible-playgook

Ansible Playbook to provision macOS

An ansible-playbook to provision shotarok's macOS.

How to use

Preparation

# Install command line tools
$ sudo xcodebuild -license
$ xcode-select --install

# Install homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ brew update

# Install ansible
$ brew install ansible

Run all provisioning

$ git clone [email protected]:shotarok/macos-provisioning.git .macos-provisioning
$ cd .macos-provisioning
$ ansible-galaxy collection install -r requirements.galaxy.yml
$ ansible-playbook -i hosts -vv localhost.yml

Run specific tasks

# Show a list of tags
$ ansible-playbook -i hosts localhost.yml --list-tasks

# Run the tasks with the 'cask' tag
$ ansible-playbook -i hosts -vv localhost.yml --tags cask

References

Releases

No releases published

Packages

No packages published

Languages