Fix: Archive content changed

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-04-20 17:20:13 +02:00
parent 2ac204f300
commit 6621104e1b
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -13,12 +13,12 @@
when: telegraf_version not in telegraf_version_cmd.stdout
- name: Move telegraf to expected position
command: mv /tmp/telegraf/telegraf /usr/local/bin/telegraf
command: 'mv /tmp/telegraf-{{ telegraf_version }}/usr/bin/telegraf /usr/local/bin/telegraf'
when: telegraf_version not in telegraf_version_cmd.stdout
- name: Cleanup tmp folder
file:
dest: /tmp/telegraf
dest: '/tmp/telegraf-{{ telegraf_version }}'
state: absent
when: telegraf_version not in telegraf_version_cmd.stdout