#!/usr/bin/ansible-playbook # vim:ft=ansible: --- - name: Install and configure Influxdb block: - name: Install influxdb apt: name: influxdb - name: Template out config template: src: "influxdb.conf" dest: "/etc/influxdb/influxdb.conf" notify: restart influxdb become: yes