renamed keys
This commit is contained in:
@@ -19,17 +19,17 @@
|
|||||||
- name: server | telegraf | download key
|
- name: server | telegraf | download key
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "https://repos.influxdata.com/influxdata-archive.key"
|
url: "https://repos.influxdata.com/influxdata-archive.key"
|
||||||
dest: "/tmp/influxdata.key"
|
dest: "/tmp/influxdata-archive.key"
|
||||||
creates: "/tmp/influxdata.key"
|
creates: "/tmp/influxdata-archive.key"
|
||||||
|
|
||||||
- name: server | telegraf | verify and import key
|
- name: server | telegraf | verify and import key
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: "gpg --show-keys --with-fingerprint --with-colons /tmp/influxdata.key 2>&1 | grep -q '^fpr:\\+24C975CBA61A024EE1B631787C3D57159FC2F927:$' && cat /tmp/influxdata.key | gpg --dearmor | tee /usr/share/keyrings/influxdata.gpg > /dev/null"
|
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 /usr/share/keyrings/influxdata-archive.gpg > /dev/null"
|
||||||
creates: "/usr/share/keyrings/influxdata.gpg"
|
creates: "/usr/share/keyrings/influxdata-archive.gpg"
|
||||||
|
|
||||||
- name: server | telegraf | add repository
|
- name: server | telegraf | add repository
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: "echo 'deb [signed-by=/usr/share/keyrings/influxdata.gpg] https://repos.influxdata.com/debian stable main' | tee /etc/apt/sources.list.d/influxdata.list"
|
cmd: "echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' | tee /etc/apt/sources.list.d/influxdata.list"
|
||||||
creates: "/etc/apt/sources.list.d/influxdata.list"
|
creates: "/etc/apt/sources.list.d/influxdata.list"
|
||||||
|
|
||||||
- name: server | telegraf | install telegraf
|
- name: server | telegraf | install telegraf
|
||||||
|
|||||||
Reference in New Issue
Block a user