From 9720adce912c43b533f31d3d84b08bda6618fa4e Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 11 Sep 2017 11:19:55 -0500 Subject: [PATCH] reuse install-console to install just openvpn (#225) --- iiab-base.yml | 12 ++++++++++++ install-support | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 iiab-base.yml create mode 100755 install-support diff --git a/iiab-base.yml b/iiab-base.yml new file mode 100644 index 000000000..4c42c01e7 --- /dev/null +++ b/iiab-base.yml @@ -0,0 +1,12 @@ +--- +- hosts: all + become: yes + + vars_files: + - vars/default_vars.yml + - vars/{{ ansible_local.local_facts.os_ver }}.yml + - vars/local_vars.yml + + roles: + - { role: 1-prep, tags: ['prep','platform','base'] } + - { role: openvpn, tags: ['openvpn'] } diff --git a/install-support b/install-support new file mode 100755 index 000000000..cd73aade8 --- /dev/null +++ b/install-support @@ -0,0 +1,18 @@ +#!/bin/bash + +PLAYBOOK="iiab-base.yml" +INVENTORY="ansible_hosts" + +if [ ! -f $PLAYBOOK ] +then + echo "IIAB Playbook not found." + echo "Please run this command from the top level of the git repo." + echo "Exiting." + exit 1 +fi + +sed -i -e "s/openvpn_install: False/openvpn_install: True/" vars/local_vars.yml +sed -i -e "s/openvpn_enabled: False/openvpn_enabled: True/" vars/local_vars.yml + +export ANSIBLE_LOG_PATH="$XSCE_DIR/iiab-install.log" +ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local