From 1aebb0b3399aebf454f067afa933d17cce0bfea5 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sun, 5 Sep 2021 00:01:03 -0400 Subject: [PATCH] Add hacky ansible script to set environment parameters --- README.md | 2 ++ ansible | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100755 ansible 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}