Skip to content

Commit

Permalink
updated install.sh script to ansible according to public and localhos…
Browse files Browse the repository at this point in the history
…t mode
  • Loading branch information
asifbasha61 committed Jun 23, 2023
1 parent 062a348 commit f8b0787
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit f8b0787

Please sign in to comment.