From f61baa3f04c79b25ccb6e73dc6adcf94a83a4ad9 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Tue, 28 Dec 2021 00:27:46 -0500 Subject: [PATCH] Consolidate ansible settings into config file Update docs --- .env | 2 -- README.md | 3 +-- ansible.cfg | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 7a2c46d..0000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -ANSIBLE_COLLECTIONS_PATH=$(pwd)/.ansible -ANSIBLE_INVENTORY=$(pwd)/inventory.yaml diff --git a/README.md b/README.md index 4ea35c3..bc8fb2f 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,7 @@ Ansible configs for the Skylab Homelab ```bash make dev -poetry shell -source .env +poetry run ansible-playbook ... ``` ## Boostraping remote system for management: diff --git a/ansible.cfg b/ansible.cfg index bbbc224..500e24e 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,5 +1,7 @@ [defaults] host_key_checking = false +collections_path = .ansible +inventory = inventory.yaml [ssh_connection] ssh_args = "-o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes"