- hosts: - adc_mcn0 remote_user: root tasks: - name: 'telegraf_statistic service start' systemd: name: telegraf_statistic enabled: yes daemon_reload: yes state: restarted