Add hacky ansible script to set environment parameters

This commit is contained in:
Ethan Paul 2021-09-05 00:01:03 -04:00
parent f6b43cfc98
commit 1aebb0b339
No known key found for this signature in database
GPG Key ID: 6A337337DF6B5B1A
2 changed files with 10 additions and 0 deletions

View File

@ -2,3 +2,5 @@
Ansible configs for the Skylab Homelab Ansible configs for the Skylab Homelab
Main entrypoint is through the `ansible` script in this repository. The script sets up basic
environment variables to avoid conflicts with other environments and sets the inventory.

8
ansible Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
ANSIBLE_CONFIG=''
ANSIBLE_FILTER_PLUGINS=''
ANSIBLE_LIBRARY=''
ANSIBLE_INVENTORY=$(pwd)/inventory.yaml
"ansible-$1" ${@:2}