mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
moodle/tasks/enable-or-disable.yml like other roles
This commit is contained in:
parent
be71adc6a1
commit
a1656ca6e7
2 changed files with 16 additions and 17 deletions
|
@ -1,3 +1,18 @@
|
|||
- name: "Set 'postgresql_install: True' and 'postgresql_enabled: True'"
|
||||
set_fact:
|
||||
postgresql_install: True
|
||||
postgresql_enabled: True # Revert just below if...
|
||||
|
||||
- name: "Set 'postgresql_enabled: False' if not moodle_enabled"
|
||||
set_fact:
|
||||
postgresql_enabled: False
|
||||
when: not moodle_enabled # and not (pathagar_enabled is defined and pathagar_enabled)
|
||||
|
||||
- name: POSTGRESQL - run 'postgresql' role (Enable&Start or Disable&Stop PostgreSQL)
|
||||
include_role:
|
||||
name: postgresql
|
||||
|
||||
|
||||
- name: Enable http://box/moodle via NGINX, by installing {{ nginx_conf_dir }}/moodle-nginx.conf from template
|
||||
template:
|
||||
src: moodle-nginx.conf.j2
|
|
@ -24,23 +24,7 @@
|
|||
when: moodle_installed is undefined
|
||||
|
||||
|
||||
- name: "Set 'postgresql_install: True' and 'postgresql_enabled: True'"
|
||||
set_fact:
|
||||
postgresql_install: True
|
||||
postgresql_enabled: True # Revert just below if...
|
||||
|
||||
- name: "Set 'postgresql_enabled: False' if not moodle_enabled"
|
||||
set_fact:
|
||||
postgresql_enabled: False
|
||||
when: not moodle_enabled # and not (pathagar_enabled is defined and pathagar_enabled)
|
||||
|
||||
- name: POSTGRESQL - run 'postgresql' role (Enable&Start or Disable&Stop PostgreSQL)
|
||||
include_role:
|
||||
name: postgresql
|
||||
|
||||
|
||||
- name: Enable/Disable/Restart NGINX
|
||||
include_tasks: nginx.yml
|
||||
- include_tasks: enable-or-disable.yml
|
||||
|
||||
|
||||
- name: Add 'moodle' variable values to {{ iiab_ini_file }}
|
||||
|
|
Loading…
Reference in a new issue