--- - include_tasks: _common.yml tags: ['prometheus_postgres'] - name: 'postgres exporter | configuration' template: src: conf/prometheus-postgres-exporter.j2 dest: /etc/default/prometheus-postgres-exporter owner: root group: root mode: 0600 register: prometheus_postgres_exporter_configuration notify: - 'prometheus | postgres exporter | restart service'