Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bradleygore/ansible

Ansible for automating dev machine tasks
https://github.com/bradleygore/ansible

Last synced: 9 days ago
JSON representation

Ansible for automating dev machine tasks

Awesome Lists containing this project

README

        

# Ansible Playbook

🎩 Inspired by [The Primeagen](https://github.com/ThePrimeagen/ansible)

This playbook is to help bootstrap a new dev env quickly. For now, it presumes MacOS for a lot of the tasks.

If I start using linux regularly again, it's possible that I make duplicate tasks for some things based on OS (e.g. using `brew` vs `apt-get` for package mgmt).

## Prerequisites

Install `ansible`:

`brew install ansible`

Install the ansible homebrew galaxy:

`ansible-galaxy collection install community.general`

## Execution

You can execute this playbook by:

`ansible-playbook [-t some_tag_here] [flags] local.yml`

For example:

- to see all possible tags:
- `ansible-playbook --list-tags local.yml`
- to see all tasks for a given tag (without execution):
- `ansible-playbook -t install --list-tasks local.yml`
- to get verbose output use `-v[vvvvv]` (max of 6 `v`s)
- `ansible-playbook -t install --list-tasks -vvv local.yml`
- to install ssh keys (presume you're me or you've forked and added your own encrypted files)
- `ansible-playbook -t ssh local.yml --ask-vault-pass`