1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #22 from jvonau/AH-master

clean up roles/4-server-options/tasks/main.yml
This commit is contained in:
A Holt 2017-10-27 00:41:48 -04:00 committed by GitHub
commit 884a9e6d93
3 changed files with 19 additions and 23 deletions

View file

@ -67,27 +67,5 @@
command: /usr/bin/iiab-refresh-wiki-docs command: /usr/bin/iiab-refresh-wiki-docs
when: not nodocs when: not nodocs
- name: Stop postgresql service
command: "/etc/init.d/postgresql stop"
ignore_errors: True
when: postgresql_install and is_debuntu
- name: Start postgresql service
service: name=postgresql-iiab
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
- name: ...WAS COMPLETED ===========================================] - name: ...WAS COMPLETED ===========================================]
command: echo command: echo

View file

@ -38,8 +38,15 @@
environment: environment:
XS_AUTHSERVER_DATABASE: /var/lib/xs-authserver/data.db XS_AUTHSERVER_DATABASE: /var/lib/xs-authserver/data.db
- name: Enable xs-authserver service - name: Stop authserver service
service: name=xs-authserver service: name=xs-authserver
state=stopped
enabled=no
when: not authserver_enabled
- name: Start xs-authserver service
service: name=xs-authserver
state=restarted
enabled=yes enabled=yes
when: authserver_enabled when: authserver_enabled

View file

@ -64,6 +64,11 @@
group=postgres group=postgres
mode=0640 mode=0640
- name: Stop postgresql service
command: "/etc/init.d/postgresql stop"
ignore_errors: True
when: postgresql_install and is_debuntu
- name: Stop and disable stock postgresql service - name: Stop and disable stock postgresql service
service: name=postgresql service: name=postgresql
state=stopped state=stopped
@ -75,6 +80,12 @@
enabled=yes enabled=yes
when: postgresql_enabled when: postgresql_enabled
- name: Stop and disable postgresql-iiab service
service: name=postgresql
state=stopped
enabled=no
when: not postgresql_enabled
- name: Add postgresql to service list - name: Add postgresql to service list
ini_file: dest='{{ service_filelist }}' ini_file: dest='{{ service_filelist }}'
section=postgresql section=postgresql