---
-
  name: Restart postgresql
  ansible.builtin.service:
    name: "{{ postgresql_daemon }}"
    state: "{{ postgresql_restarted_state }}"
    sleep: 5

-
  name: Force-restart PostgreSQL after new locales are generated.
  ansible.builtin.systemd:
    name: "{{ postgresql_daemon }}"
    state: restarted
