finchd / ansible-scripts

Little one-liners and playbooks that don't belong in an Environment, that everyone should have access to

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

finchd's ansible-scripts

Build Status Gitpod ready-to-code

Everybody has a script staging repo, this one's mine. Place for one-liners and single-purpose playbooks. Playbooks may get turned into modules or roles as they grow in complexity, but templates/patterns should remain here.

localhost_shim_playbook.yaml is a shim for running lists of tasks - a list of tasks is not a valid playbook as it doesn't declare the hosts. But for prototyping new actions, I never have particular hosts in mind anyway.

Task file templates:

  1. install_single_scripts_from_github.yaml single task to get_url from a github commit, possibly add simple version checking later - this shall not grow to be my own package manager!

Usage

$ cat > ~/.ansible.cfg << EOF
[defaults]
roles_path=~/.ansible/roles
inventory=./inventory
EOF
$ ansible-galaxy -r requirements.yaml
$ ansible-playbook localhost_shim_playbook.yaml -K

About

Little one-liners and playbooks that don't belong in an Environment, that everyone should have access to


Languages

Language:Dockerfile 100.0%