1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/postgresql/tasks/enable-or-disable.yml

15 lines
391 B
YAML
Raw Normal View History

- name: Enable & Start 'postgresql-iiab' systemd service, if postgresql_enabled
systemd:
name: postgresql-iiab
daemon_reload: yes
enabled: yes
state: started
when: postgresql_enabled
- name: Disable & Stop 'postgresql-iiab' systemd service, if not postgresql_enabled
systemd:
name: postgresql-iiab
enabled: no
state: stopped
when: not postgresql_enabled