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

clean up roles/4-server-options/tasks/main.yml

This commit is contained in:
Jerry Vonau 2017-10-26 22:58:56 -05:00
parent 8088858b10
commit a013dc6bfb
3 changed files with 19 additions and 23 deletions

View file

@ -64,6 +64,11 @@
group=postgres
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
service: name=postgresql
state=stopped
@ -75,6 +80,12 @@
enabled=yes
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
ini_file: dest='{{ service_filelist }}'
section=postgresql