--- - hosts: localhost connection: local vars: influxdb_users: - name: paul password: test admin: yes - name: adrien password: test2 - name: antoine state: absent influxdb_databases: - new_database influxdb_privileges: - user: adrien database: new_database privilege: WRITE influxdb_config: '[collectd]': enabled: true port: 25826 database: collectd typesdb: /usr/share/collectd/types.db roles: - ansible-role-influxdb pre_tasks: - name: install collectd package apt: name: collectd-core