diff --git a/README.md b/README.md index 5dd0b35..f1bba91 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,5 @@ 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. diff --git a/ansible b/ansible new file mode 100755 index 0000000..7fb17d6 --- /dev/null +++ b/ansible @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +ANSIBLE_CONFIG='' +ANSIBLE_FILTER_PLUGINS='' +ANSIBLE_LIBRARY='' +ANSIBLE_INVENTORY=$(pwd)/inventory.yaml + +"ansible-$1" ${@:2}