Skip to content

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 git@github.com: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

PR's Workflow

  1. PR approved → 'ready-to-merge' label added
  2. Label triggers ansible-playbook CI
  3. New commits to labeled PR → CI automatically re-runs (with old jobs canceled)
  4. If CI passes → PR ready for merge
  5. If CI fails → label removed, PR blocked from merge

References

About

An ansible-playbook to provision macOS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages