- hosts: localhost gather_facts: yes user: root pre_tasks: - name: Register the start of the restore with Healthchecks server uri: url: '{{ postgresqlrestore_check_url }}/start' roles: - odoo post_tasks: - name: Register a successful restore with Healthchecks server uri: url: '{{ postgresqlrestore_check_url }}' method: POST body: '{{ ansible_hostname }}.{{ dominio }}' vars: dominio: agofer.net