chaudhryjunaid / setup-macos

An ansible playbook to setup macOS for developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup-macos

A ready-to-use ansible playbook to setup macos for general software development. This playbook should be used as an adjunct to the readme at: [https://github.com/chaudhryjunaid/setup-apple-silicon-mac].

Requirements

For macos 13 Ventura or later.

Setting up pre-requisites

  • Ensure you have ssh keys created and the public key uploaded to github

  • Install ansible:

    brew install ansible
    # symlink /usr/local/bin/python to wherever python3 is installed in your system if the python binary is not available
    
  • Clone this repo:

    cd ~
    git clone git@github.com:chaudhryjunaid/setup-macos.git
    

Running the playbook

  • For a fresh machine, run the complete playbook:

        cd ~/setup-macos
        time ansible-playbook macos-setup.yml -v
    

    The playbook will ask for sudo password and prompt for other information as well in some roles. Please keep an eye on the progress to see if any input is required.

  • If you already have a setup and want to execute/reset only part of the configuration done by this repo, please use the --tags or --skip-tags options:

        cd setup-macos
        time ansible-playbook macos-setup.yml --verbose --tags "dotfiles,zsh"
    
  • Following tags are supported:

    • dotfiles
    • zsh
    • osx
    • nodejs

Additional manual configuration required

About

An ansible playbook to setup macOS for developers

License:MIT License


Languages

Language:Shell 95.8%Language:Jinja 4.2%