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