1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

move config_vars.yml creation

This commit is contained in:
Jerry Vonau 2017-09-19 02:44:04 -05:00
parent 53b884450b
commit e57ff51ca8
3 changed files with 4 additions and 8 deletions

View file

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

View file

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

View file

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