- name: remove postgres.conf become: yes file: state: absent path: "/etc/telegraf/telegraf.d/postgres.conf" notify: restart_telegraf