--- - name: restart postgresql systemd: name: postgresql@{{ psql.version }}-main state: restarted enabled: true