- name: restart postgresql systemd: name: postgresql state: restarted