- hosts: - conflatorio tasks: - become: yes file: state: directory path: "/etc/trygvis" - become: yes template: dest: "/etc/trygvis/telegraf.conf" src: "telegraf.conf"