From 2e02efcbb71058a852f4c5eedcc72ec2c98dfa12 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Tue, 26 Sep 2023 21:14:06 -0400 Subject: [PATCH] Add Makefile, roles_path, and SSH tunnel variable --- Makefile | 10 ++++++++++ ansible.cfg | 1 + forward-ssh.sh | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..997e45e --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: clean install + +all: install + +install: + vagrant up --no-destroy-on-error + sudo ./forward-ssh.sh + +clean: + vagrant destroy -f && rm -rf .vagrant diff --git a/ansible.cfg b/ansible.cfg index e0ac21f..a63fe34 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,6 +1,7 @@ [defaults] inventory = ./environments/development interpreter_python = /usr/bin/python3 +roles_path = ./roles [connection] pipelining = true diff --git a/forward-ssh.sh b/forward-ssh.sh index ae65bbf..d98c2f0 100755 --- a/forward-ssh.sh +++ b/forward-ssh.sh @@ -17,7 +17,7 @@ unset PKILL_ANSWER # Function to create the SSH tunnel function ssh_connect { - read -rp "Start a new vagrant SSH tunnel? [y/N]" + read -rp "Start a new vagrant SSH tunnel? [y/N] " PSTART_ANSWER echo case "$PSTART_ANSWER" in [yY])