1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/4-server-options/tasks/main.yml

39 lines
1,014 B
YAML
Raw Normal View History

2017-05-27 18:09:50 +00:00
- name: Server Options Installed
command: echo Server Options Installed
# this script can be sourced to get iiab location
- name: Create iiab.env file
template: src=roles/1-prep/templates/iiab.env.j2
dest=/etc/iiab/iiab.env
owner=root
group=root
mode=0644
- name: put a python interface to iiab.env
template: src=roles/1-prep/templates/iiab_env.py.j2
dest=/etc/iiab/iiab_env.py
2017-05-27 18:09:50 +00:00
- name: Stop postgresql service
command: "/etc/init.d/postgresql stop"
ignore_errors: True
2017-05-27 23:10:45 +00:00
when: postgresql_install and is_debuntu
2017-05-27 18:09:50 +00:00
- name: Start postgresql service
service: name=postgresql-iiab
2017-05-27 18:09:50 +00:00
state=restarted
enabled=yes
when: postgresql_enabled
- name: Stop authserver service
service: name=xs-authserver
state=stopped
enabled=no
when: not authserver_enabled and authserver_install
- name: Start xs-authserver service
service: name=xs-authserver
state=restarted
when: authserver_enabled