mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +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
|
# has no "when: XXXXX_install" flag
|
||||||
tags: base, iiab-admin
|
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
|
- name: Make sure there is a content directory
|
||||||
file: dest={{ doc_root }}/local_content
|
file: dest={{ doc_root }}/local_content
|
||||||
state=directory
|
state=directory
|
||||||
|
|
||||||
- name: Base Server Installed
|
|
||||||
command: echo Base Server Installed
|
|
||||||
|
|
||||||
- name: Restart httpd
|
- name: Restart httpd
|
||||||
service: name={{ apache_service }}
|
service: name={{ apache_service }}
|
||||||
state=restarted
|
state=restarted
|
||||||
|
|
|
@ -27,6 +27,12 @@
|
||||||
# has no "when: XXXXX_install" flag
|
# has no "when: XXXXX_install" flag
|
||||||
tags: base, homepage
|
tags: base, homepage
|
||||||
|
|
||||||
|
- name: POSTGRESQL
|
||||||
|
include_role:
|
||||||
|
name: postgresql
|
||||||
|
when: postgresql_install
|
||||||
|
tags: postgresql, pathagar, moodle
|
||||||
|
|
||||||
- name: AUTHSERVER
|
- name: AUTHSERVER
|
||||||
include_role:
|
include_role:
|
||||||
name: authserver
|
name: authserver
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
dependencies:
|
|
||||||
- { role: mysql }
|
|
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
dependencies:
|
|
||||||
- { role: postgresql }
|
|
|
@ -105,7 +105,6 @@
|
||||||
state=stopped
|
state=stopped
|
||||||
when: not mysql_enabled
|
when: not mysql_enabled
|
||||||
|
|
||||||
|
|
||||||
- name: Add 'mysql' to service list
|
- name: Add 'mysql' to service list
|
||||||
ini_file: dest='{{ service_filelist }}'
|
ini_file: dest='{{ service_filelist }}'
|
||||||
section=mysql
|
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
|
# Pass cmdline options for ansible
|
||||||
ARGS="$@"
|
ARGS="$@"
|
||||||
|
|
||||||
# copy var files to /etc/iiab for subsequent use
|
# if vars/local_vars.yml is missing, put a default one in place - First Run
|
||||||
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
|
if [ ! -f ./vars/local_vars.yml ]; then
|
||||||
OS=`grep ^ID= /etc/*release|cut -d= -f2`
|
OS=`grep ^ID= /etc/*release|cut -d= -f2`
|
||||||
OS=${OS//\"/}
|
OS=${OS//\"/}
|
||||||
|
@ -29,14 +23,24 @@ if [ ! -f ./vars/local_vars.yml ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
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 ]
|
if [ -f /etc/iiab/iiab.env ]
|
||||||
then
|
then
|
||||||
. /etc/iiab/iiab.env
|
OLD=`grep XSCE /etc/iiab/iiab.env`
|
||||||
cd $IIAB_DIR
|
if [ x"$OLD" != "x" ]
|
||||||
|
then
|
||||||
|
rm /etc/iiab/iiab.env
|
||||||
|
else
|
||||||
|
. /etc/iiab/iiab.env
|
||||||
|
cd $IIAB_DIR
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
IIAB_DIR=/opt/iiab/iiab
|
|
||||||
mkdir -p /etc/iiab
|
mkdir -p /etc/iiab
|
||||||
|
echo "{}" > /etc/iiab/config_vars.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CWD=`pwd`
|
CWD=`pwd`
|
||||||
|
|
||||||
if [ ! -f $PLAYBOOK ]
|
if [ ! -f $PLAYBOOK ]
|
||||||
|
|
Loading…
Reference in a new issue