1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

Merge pull request #362 from georgejhunt/config

test revert
This commit is contained in:
georgejhunt 2017-10-02 10:00:02 -07:00 committed by GitHub
commit 919e781818
3 changed files with 7 additions and 4 deletions

View file

@ -6,6 +6,7 @@
- vars/default_vars.yml
- vars/{{ ansible_local.local_facts.os_ver}}.yml
- vars/local_vars.yml
- /etc/iiab/config_vars.yml
roles:
- { role: 1-prep, tags: ['prep','platform','base'] }

View file

@ -1,5 +1,3 @@
- name: Addon services installed
command: echo Addon services installed
- name: Installation Complete
shell: echo "{}" > /etc/iiab/config_vars.yml

View file

@ -1,6 +1,11 @@
#!/bin/bash -e
# ./scripts/ansible
# copy var files to /etc/iiab for subsequent use
mkdir -p /etc/iiab
if [ ! -f /etc/iiab/config_vars.yml ]; then
echo "{}" > /etc/iiab/config_vars.yml
fi
# if vars/local_vars.yml is missing, put a default one in place
if [ ! -f ./vars/local_vars.yml ]; then
OS=`grep ^ID= /etc/*release|cut -d= -f2`
@ -73,4 +78,3 @@ export ANSIBLE_LOG_PATH="$XSCE_DIR/iiab-install.log"
ansible -m setup -i $INVENTORY localhost --connection=local >> /dev/null
ansible-playbook -i $INVENTORY $PLAYBOOK ${ARGS} --connection=local
#ansible-playbook -i $INVENTORY $PLAYBOOK ${ARGS} --syntax-check