corrected fingerprint and escape character

This commit is contained in:
2025-11-27 15:11:42 +01:00
parent e216ba4122
commit c1cafcbb2a

View File

@@ -24,12 +24,12 @@
- name: server | telegraf | verify and import key
ansible.builtin.shell:
cmd: "gpg --show-keys --with-fingerprint --with-colons /tmp/influxdata-archive.key 2>&1 | grep -q '^fpr:\+24C975CBA61A024EE1B631787C3D57159FC2F927:$' && cat /tmp/influxdata-archive.key | gpg --dearmor | tee /etc/apt/keyrings/influxdata-archive.gpg > /dev/null"
cmd: "gpg --show-keys --with-fingerprint --with-colons /tmp/influxdata.key 2>&1 | grep -q '^fpr:\\+9D539D90D3328DC7D6C8D3B9D8FF8E1F7DF8B07E:$' && cat /tmp/influxdata-archive.key | gpg --dearmor | tee /etc/apt/keyrings/influxdata-archive.gpg > /dev/null"
creates: "/etc/apt/trusted.gpg.d/influxdata-archive.gpg"
- name: server | telegraf | add repository
ansible.builtin.shell:
cmd: "echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' | tee /etc/apt/sources.list.d/influxdata.list"
cmd: "echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata.gpg] https://repos.influxdata.com/debian stable main' | tee /etc/apt/sources.list.d/influxdata.list"
creates: "/etc/apt/sources.list.d/influxdata.list"
- name: server | telegraf | install telegraf