1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Merge pull request #1081 from holta/openvpn2

Cleanup of /opt/iiab/iiab/install-support, iiab-support.yml etc
This commit is contained in:
A Holt 2018-09-03 00:17:59 -04:00 committed by GitHub
commit 0438875020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 32 deletions

View file

@ -1,13 +0,0 @@
---
- hosts: all
become: yes
vars_files:
- vars/default_vars.yml
- vars/{{ ansible_local.local_facts.os_ver }}.yml
- /etc/iiab/local_vars.yml
roles:
- { role: 0-init, tags: ['0-init'] }
- { role: 1-prep, tags: ['1-prep','platform','base'] }
- { role: openvpn, tags: ['openvpn'] }

14
iiab-support.yml Normal file
View file

@ -0,0 +1,14 @@
---
- hosts: all
become: yes
vars_files:
- vars/default_vars.yml
- vars/{{ ansible_local.local_facts.os_ver }}.yml
- /etc/iiab/local_vars.yml
roles:
- { role: 0-init, tags: ['0-init'] }
#- { role: 1-prep, tags: ['1-prep', 'platform', 'base'] }
- { role: 1-prep, tags: ['1-prep'] }
- { role: openvpn, tags: ['openvpn'] }

View file

@ -1,16 +1,14 @@
#!/bin/bash #!/bin/bash
PLAYBOOK="iiab-base.yml" PLAYBOOK="iiab-support.yml"
INVENTORY="ansible_hosts" INVENTORY="ansible_hosts"
CWD=`pwd` CWD=`pwd`
export ANSIBLE_LOG_PATH="$CWD/iiab-install.log" export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
if [ ! -f $PLAYBOOK ] if [ ! -f $PLAYBOOK ]; then
then echo -e "\nEXITING: $PLAYBOOK not found.\n"
echo "IIAB Playbook not found." echo -e "Please run this command from /opt/iiab/iiab (top of git repo).\n"
echo "Please run this command from the top level of the git repo."
echo "Exiting."
exit 1 exit 1
fi fi