Skip to content

bradleygore/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Playbook

🎩 Inspired by The Primeagen

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 vs)
    • 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

About

Ansible for automating dev machine tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages