--- - name: Converge hosts: all roles: - ansible-role-influxdb vars: influxdb_users: - name: admin password: test admin: yes - name: test password: test2 grants: - database: test_db privilege: WRITE - name: user_absent state: absent influxdb_databases: - test_db influxdb_config: '[collectd]': enabled: true port: 25826 database: collectd typesdb: /usr/share/collectd/types.db pre_tasks: - name: update apt cache ansible.builtin.apt: update_cache: true - name: install collectd package ansible.builtin.package: name: - collectd-core