From 306c5e5bb1a301789dba72306a0e231332aeadca Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Wed, 8 Sep 2021 00:08:29 -0400 Subject: [PATCH] add script for bootstrapping fedora and running all playbooks --- playbook-Linux.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 playbook-Linux.sh diff --git a/playbook-Linux.sh b/playbook-Linux.sh new file mode 100755 index 0000000..9724990 --- /dev/null +++ b/playbook-Linux.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +sudo dnf install -y ansible ansible-collection-community-general + +# this needs to be set on the first run +# otherwise ansible can't use the new $PATH +case ":${PATH}:" in + *:"$HOME/.cargo/bin":*) + ;; + *) + export PATH="$HOME/.cargo/bin:$PATH" + ;; +esac + +ansible-playbook -i linux-inventory.yml localdev.yml