Initial Lab Setup

This commit is contained in:
2026-07-06 16:45:51 +02:00
commit 05184d778d
52 changed files with 2526 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
- name: Fix InfluxData GPG Key expiration (Trixie/sqv fix)
become: true
block:
- name: Download the latest InfluxData archive key
ansible.builtin.get_url:
url: https://repos.influxdata.com/influxdata-archive.key
dest: /tmp/influxdata-archive.key
mode: '0644'
- name: Dearmor key for sqv compatibility
ansible.builtin.shell: |
cat /tmp/influxdata-archive.key | gpg --dearmor > /usr/share/keyrings/influxdata-archive.gpg
args:
creates: /usr/share/keyrings/influxdata-archive.gpg
- name: Ensure correct repository configuration
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/influxdata.list
content: "deb [signed-by=/usr/share/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main"
- name: Remove conflicting legacy list files
ansible.builtin.file:
path: "/etc/apt/sources.list.d/{{ item }}"
state: absent
loop:
- repos_influxdata_com_debian.list
- influxdb.list
- name: Run apt update
ansible.builtin.apt:
update_cache: yes