--- - name: Ensure apt-transport-https apt: name: apt-transport-https state: present update_cache: yes - name: Ensure influxdata signing key apt_key: url: "{{ influx.repo }}" state: present - name: Ensure influxdata repo apt_repository: repo: deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable state: present filename: influxdata - name: Ensure influx2 and influx-cli apt: name: "{{ item }}" state: present update_cache: yes with_items: - influxdb2 - influxdb2-cli - name: Ensure influx is started and enabled systemd: name: influxdb state: started enabled: yes