drastically simplified the playbook selection in the installation script

This commit is contained in:
aminnairi
2024-01-06 11:26:50 +01:00
parent 91b6cd8f1d
commit dfda147449
+2
View File
@@ -65,6 +65,8 @@ choosen_playbook_path=$1
if [[ -z $choosen_playbook_path ]] if [[ -z $choosen_playbook_path ]]
then 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 fi
if [[ ! -f $choosen_playbook_path ]] if [[ ! -f $choosen_playbook_path ]]