--- - name: Restart postgres ansible.builtin.service: name: postgresql state: restarted become: true