- 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
