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