Giter Club home page Giter Club logo

ansible-macos-playbook's Introduction

Ansible MacOS Playbook

This is the playbook I use after a clean install of MacOS to set everything up.

Advantages for me over using a shell script based setup

  • I can run the playbook over and over again with the same results.
  • Tasks are only executed when changes are needed.
  • The documentation about what is done is right in the output, instead of only in the comments.
  • When a task doesn't work anymore, for example after a new macOS release, I will know immediately which one and why.
  • It helps me to improve my Ansible skills :)

My dotfiles are managed with yadm and stored in a private git repository which is pulled in the first time the playbook is run. The repository is private because it includes sensitive data like private keys and GitHub tokens. This approach allows me to only need the login data of the dotfiles repo provider when setting up a computer from scratch.

Installation

Automated

sh -c "$(curl -fsSL https://raw.githubusercontent.com/AndreasBoehm/ansible-macos-playbook/master/install.sh)"

Manual

# Install Apple's Command Line Tools
xcode-select --install

# Install Homebrew (see http://brew.sh)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install ansible
brew install ansible

# Clone this repository
https://github.com/AndreasBoehm/ansible-macos-playbook.git

# Run the playbook
ansible-playbook setup.yml

Acknowledgements

This playbook is heavily inspired by Jérôme Gamez's ansible-macos-playbook.

ansible-macos-playbook's People

Contributors

andreasboehm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

birmingham

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.