mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
mongo installed on image but not recorded workaround
This commit is contained in:
parent
b75261fa06
commit
07a30132b6
1 changed files with 7 additions and 0 deletions
|
@ -3,10 +3,17 @@
|
|||
INVENTORY="ansible_hosts"
|
||||
PLAYBOOK="iiab-from-cmdline.yml"
|
||||
CWD=`pwd`
|
||||
APPS=/etc/iiab/config_vars2.yml
|
||||
if [ ! -f $PLAYBOOK ]; then
|
||||
echo "Exiting: IIAB Playbook not found."
|
||||
echo "Please run this in /opt/iiab/iiab (top level of the git repo)."
|
||||
exit 1
|
||||
fi
|
||||
if grep -q sugar $APPS; then
|
||||
if ! grep -q mongodb $APPS; then
|
||||
echo "mongodb_installed: True" >> $APPS
|
||||
fi
|
||||
fi
|
||||
|
||||
export ANSIBLE_LOG_PATH="$CWD/iiab-configure.log"
|
||||
ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local
|
||||
|
|
Loading…
Reference in a new issue