Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bradleygore/ansible
- Owner: bradleygore
- Created: 2023-10-10T01:27:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-06T23:02:36.000Z (10 months ago)
- Last Synced: 2024-04-22T05:08:00.116Z (7 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`