Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

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

Merged
merged 2 commits into from
Feb 4, 2020
Merged

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

merged 2 commits into from
Feb 4, 2020

Conversation

Gati0
Copy link
Contributor

@Gati0 Gati0 commented Jan 30, 2020

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 dj-wasabi merged commit 14eedac into dj-wasabi:master Feb 4, 2020
@dj-wasabi
Copy link
Owner

Thanks! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants