Git Product home page Git Product logo

ansible-osx-playbooks's Introduction

What is this?

Those files are the ansible playbooks and roles I use to manage my local macOS machine (currently a MBP). When I found myself reconfiguring the same stuff over and over again, whenever I created a new user on my system, I made my decision to invest time into automating all those steps.

Why not simple zsh/bash scripts?

In my opinion ansible offers mainly four advantages:

  • Oranization: With ansible you are encouraged to organize your concerns. E.g. it takes care of automatically including files at the right position
  • Orchestration: ansible can run the same tasks on many hosts. It manages all the trouble of connecting to those hosts and executing the tasks.
  • Granulation: With ansible one can adavance step by step or exclude tasks from beeing run (e.g. using tags)
  • Idempotency: ansible encourages to write idempotent tasks.

How is this organized?

The project is organized on three abstraction levels: tasks, roles and playbooks. Tasks are like one command in a script. A role is a collection of tasks and a playbook is a connection between tasks and roles on one side and hosts on the other side.

Currently there are the following roles:

Role Description
appmanager Makes sure a local app manager exists. A local app manager is a system user (uid <= 500), who has no administrator rights on the system, besides installing those apps, which do not need any special rights.
homebrew Ensure homebrew is installed on the local machine. Homebrew needs a folder, where it can be installed to and a link in /usr/local/bin.

and the following playbooks:

Playbook Roles used Description
appmanagement appmanager Ensures an easy and more secure way of app installation on the system by a local app manager

How to run?

Just get a copy of the repository or clone it:

# In Terminal.app:
# clone the repo
git clone https://github.com/rqelibari/ansible-osx-playbooks.git ./ansible-osx-playbooks
# switch to the new directory
cd ./ansible-osx-playbooks

Then choose a playbook you want to run and execute the following from inside the repository directory:

./ansible-playbook.pex -i ./hosts {{playbook-to-run}}.yml --ask-vault-pass

Replace {{playbook-to-run}} with the name of the playbook, you want to run.

Vault Password

Important: The vault pass for vaults in this repo is vaultPassword

ansible-osx-playbooks's People

Contributors

rqelibari avatar

Watchers

 avatar  avatar

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.