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

14 lines
391 B
YAML

- 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