1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

CI: Replace apt_repository and apt_key with deb822_repository (#11625)

Replace apt_repository and apt_key with deb822_repository.
This commit is contained in:
Felix Fontein 2026-03-19 23:12:40 +01:00 committed by GitHub
parent dae2157bb7
commit bc22fbcaa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 64 additions and 36 deletions

View file

@ -16,14 +16,37 @@
- ndg-httpsclient
- pyasn1
- name: Add InfluxDB public GPG key
apt_key: url=https://repos.influxdata.com/influxdb.key state=present
- name: Make sure python3-debian is installed
ansible.builtin.apt:
name: python3-debian
state: present
- name: Add InfluxDB repository
apt_repository: repo='deb https://repos.influxdata.com/ubuntu trusty stable' filename='influxdb' state=present update_cache=yes
ansible.builtin.deb822_repository:
update_cache: true
name: influxdb
types: deb
signed_by: https://repos.influxdata.com/influxdb.key
uris:
- https://repos.influxdata.com/ubuntu
suites:
- trusty
components:
- stable
state: present
register: apt_repo
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
when: apt_repo is changed
- name: Install InfluxDB
apt: name=influxdb state=latest
ansible.builtin.apt:
name: influxdb
state: latest
- name: Start InfluxDB service
service: name=influxdb state=started
ansible.builtin.service:
name: influxdb
state: started