1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

POSTGRESQL rework

This commit is contained in:
Jerry Vonau 2020-01-04 21:38:54 -06:00
parent 3b1317eb7a
commit b31e613997
5 changed files with 49 additions and 11 deletions

View file

@ -1,3 +1,18 @@
- name: Enable postgresql-iiab service when moodle_enabled
systemd:
name: postgresql-iiab
state: started
enabled: yes
when: moodle_enabled
# if the only service using the backend db disable if not running
- name: Disable postgresql-iiab service when not moodle_enabled
systemd:
name: postgresql-iiab
state: stopped
enabled: no
when: not moodle_enabled and not (pathagar_enabled is defined and pathagar_enabled)
# Apache
- name: Enable http://box/moodle via Apache

View file

@ -1,3 +1,12 @@
- name: Turn on enabled vars for PostgreSQL
set_fact:
postgresql_install: True
postgresql_enabled: True
- name: POSTGRESQL
include_role:
name: postgresql
- name: "Install packages: python-psycopg2, php-pgsql (OS's other than debuntu)"
package:
name: