Describe the bug
Telegraf appears to have changed their package structure in newer versions. Extracting version 1.10.0 which is the default in the playbook and downloads telegraf-1.10.0_windows_amd64.zip generates a directory name telegraf whereas downloading version 1.16.3 and file telgraf-1.16.3_windows_amd64.zip extracts to a directory named telegraf-1.16.3
Archive: telegraf-1.16.3_windows_amd64.zip
creating: telegraf-1.16.3/
inflating: telegraf-1.16.3/telegraf.conf
inflating: telegraf-1.16.3/telegraf.exe
This causes the step task, after Unzip File, named Configure Telegraf to fail in ansible-telegraf/tasks/configure_windows.yml
"msg": "Destination directory 'C:\Telegraf\telegraf' does not exist"}
Seems like this began in telegraf version 15?
Archive: ../telegraf-1.14.0_windows_amd64.zip
creating: telegraf/
inflating: telegraf/telegraf.exe
inflating: telegraf/telegraf.conf
Describe the bug Telegraf appears to have changed their package structure in newer versions. Extracting version 1.10.0 which is the default in the playbook and downloads telegraf-1.10.0_windows_amd64.zip generates a directory name telegraf whereas downloading version 1.16.3 and file telgraf-1.16.3_windows_amd64.zip extracts to a directory named telegraf-1.16.3 Archive: telegraf-1.16.3_windows_amd64.zip creating: telegraf-1.16.3/ inflating: telegraf-1.16.3/telegraf.conf
inflating: telegraf-1.16.3/telegraf.exe
This causes the step task, after Unzip File, named Configure Telegraf to fail in ansible-telegraf/tasks/configure_windows.yml "msg": "Destination directory 'C:\Telegraf\telegraf' does not exist"}
Seems like this began in telegraf version 15? Archive: ../telegraf-1.14.0_windows_amd64.zip creating: telegraf/ inflating: telegraf/telegraf.exe
inflating: telegraf/telegraf.conf
Installation method/version dj-wasabi.telegraf, 0.13.0
Ansible Version
Targetted hosts Concerns the following OS(es):
Expected behavior Expect that the telegraf be exported into a directory named telegraf perhaps?