dj-wasabi / ansible-zabbix-agent

Installing and maintaining zabbix-agent for RedHat/Debian/Ubuntu/Windows/Suse.
https://galaxy.ansible.com/dj-wasabi/zabbix-agent
MIT License
327 stars 249 forks source link

Move up task 'Override architecture if 64-bit' #304

Closed Gati0 closed 4 years ago

Gati0 commented 4 years ago

Description of PR Move up task 'Override architecture if 64-bit' The fact 'windows_arch' is set to 32 per default line 10. The fact 'windows_arch' is used by "Windows | Set path to zabbix.exe" task juste after, so the path zabbix_win_exe_path contain 32bit path. And the override is after. If we keep the override set_fact after this task : the path 'zabbix_win_exe_path' is not changed and keep this value to 32. And zabbix-agent in 64bit is never installed even if ansible_architecture is 64bit.

Type of change Move up task 'Override architecture if 64-bit' to override 'windows_arch' value before use it.

Feature Pull Request Bugfix Pull Request Docs Pull Request

Fixes an issue The issue is not visible by ansible. But the main issue is : if the OS archi is 64bit, the version of zabbix-agent version 32bit is always installed.

After the change :

Capture d’écran 2020-01-30 à 14 48 03

Before it was 'win32'. Tested with Ansible 2.9.0 on Windows 2016 Server.

dj-wasabi commented 4 years ago

Thanks! 👍