--- - name: install depencies packages ansible.builtin.package: name: - apt-transport-https - collectd-core - python3-pip register: result until: result is succeeded retries: 2 tags: influxdb - name: add key for influxdb repository ansible.builtin.apt_key: url: https://repos.influxdata.com/influxdb.key register: result until: result is succeeded retries: 2 tags: influxdb - name: add influxdb repository ansible.builtin.apt_repository: repo: 'deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable' tags: influxdb - name: install influxdb package ansible.builtin.package: name: - influxdb register: result until: result is succeeded retries: 2 tags: influxdb - name: install python-influxdb ansible.builtin.pip: name: influxdb executable: /usr/bin/pip3 register: result until: result is succeeded retries: 2 tags: influxdb