ansible-roles/library/centos/roles/postgresql/postgresql/tasks/disable-service.yml

6 lines
214 B
YAML

---
- name: Ensure that the postgresql server is stopped and disabled if configured to not start
service: name='postgresql-{{ psql_version }}' state=stopped enabled=no
when: not psql_enabled
tags: postgresql