From dfda147449c421ef25da75461e64dd800397fb79 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 6 Jan 2024 11:26:50 +0100 Subject: [PATCH] drastically simplified the playbook selection in the installation script --- main.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.sh b/main.sh index 257f216..7605f29 100755 --- a/main.sh +++ b/main.sh @@ -65,6 +65,8 @@ choosen_playbook_path=$1 if [[ -z $choosen_playbook_path ]] then + choosen_playbook_file="$(/usr/bin/find ansible -name '*.yml' -type f -maxdepth 1 | xargs basename -a | /usr/bin/fzf)" + choosen_playbook_path="ansible/$choosen_playbook_file" fi if [[ ! -f $choosen_playbook_path ]]