From f8b07875a8d8fad6fbc8d2640c9a612de891938c Mon Sep 17 00:00:00 2001 From: asifbasha61 Date: Fri, 23 Jun 2023 11:33:32 +0530 Subject: [PATCH] updated install.sh script to ansible according to public and localhost mode --- install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f0c44f4..67964d5 100755 --- a/install.sh +++ b/install.sh @@ -74,7 +74,14 @@ if [ ! $? = 0 ]; then exit fi -ansible-playbook ansible/install.yml --tags "install" +mode_of_installation=$(awk ''/^mode_of_installation:' /{ if ($2 !~ /#.*/) {print $2}}' config_files/config.yml) + +if [[ $mode_of_installation == "public" ]]; then + ansible-playbook ansible/public_install.yml --tags "install" +else + ansible-playbook ansible/localhost_install.yml --tags "install" +fi + set -e ansible-playbook ansible/compose.yml --tags "install"