add script for bootstrapping fedora and running all playbooks

main
Andrew Coleman 2021-09-08 00:08:29 -04:00
parent 39c11333ad
commit 306c5e5bb1
1 changed files with 15 additions and 0 deletions

15
playbook-Linux.sh Executable file
View File

@ -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