mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
Merge branch 'master' into master
This commit is contained in:
commit
4651548f45
11 changed files with 26 additions and 36 deletions
|
@ -15,13 +15,16 @@
|
|||
# has no "when: XXXXX_install" flag
|
||||
tags: base, iiab-admin
|
||||
|
||||
- name: MYSQL
|
||||
include_role:
|
||||
name: mysql
|
||||
# has no "when: XXXXX_install" flag
|
||||
tags: base, mysql
|
||||
|
||||
- name: Make sure there is a content directory
|
||||
file: dest={{ doc_root }}/local_content
|
||||
state=directory
|
||||
|
||||
- name: Base Server Installed
|
||||
command: echo Base Server Installed
|
||||
|
||||
- name: Restart httpd
|
||||
service: name={{ apache_service }}
|
||||
state=restarted
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
# has no "when: XXXXX_install" flag
|
||||
tags: base, homepage
|
||||
|
||||
- name: POSTGRESQL
|
||||
include_role:
|
||||
name: postgresql
|
||||
when: postgresql_install
|
||||
tags: postgresql, pathagar, moodle
|
||||
|
||||
- name: AUTHSERVER
|
||||
include_role:
|
||||
name: authserver
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: mysql }
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: postgresql }
|
|
@ -105,7 +105,6 @@
|
|||
state=stopped
|
||||
when: not mysql_enabled
|
||||
|
||||
|
||||
- name: Add 'mysql' to service list
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
section=mysql
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: mysql }
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: mysql }
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: postgresql }
|
|
@ -1,4 +0,0 @@
|
|||
---
|
||||
allow_duplicates: yes
|
||||
dependencies:
|
||||
- { role: mysql, mysql_enabled: True }
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: mysql }
|
24
runansible
24
runansible
|
@ -4,13 +4,7 @@ INVENTORY="ansible_hosts"
|
|||
# Pass cmdline options for ansible
|
||||
ARGS="$@"
|
||||
|
||||
# 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 - First Run
|
||||
if [ ! -f ./vars/local_vars.yml ]; then
|
||||
OS=`grep ^ID= /etc/*release|cut -d= -f2`
|
||||
OS=${OS//\"/}
|
||||
|
@ -29,14 +23,24 @@ if [ ! -f ./vars/local_vars.yml ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
# copy var files to /etc/iiab for subsequent use
|
||||
# If iiab.env exists, on second or upgrade run, check for stale variables
|
||||
# iiab.env gets created at the end of stage-4 on First Run
|
||||
if [ -f /etc/iiab/iiab.env ]
|
||||
then
|
||||
. /etc/iiab/iiab.env
|
||||
cd $IIAB_DIR
|
||||
OLD=`grep XSCE /etc/iiab/iiab.env`
|
||||
if [ x"$OLD" != "x" ]
|
||||
then
|
||||
rm /etc/iiab/iiab.env
|
||||
else
|
||||
. /etc/iiab/iiab.env
|
||||
cd $IIAB_DIR
|
||||
fi
|
||||
else
|
||||
IIAB_DIR=/opt/iiab/iiab
|
||||
mkdir -p /etc/iiab
|
||||
echo "{}" > /etc/iiab/config_vars.yml
|
||||
fi
|
||||
|
||||
CWD=`pwd`
|
||||
|
||||
if [ ! -f $PLAYBOOK ]
|
||||
|
|
Loading…
Reference in a new issue