#!/usr/bin/ansible-playbook # vim:ft=ansible: --- - name: restart telegraf systemd: name: telegraf state: restarted become: yes