Skip to content

Commit

Permalink
Fix execution of Windows Agent installation
Browse files Browse the repository at this point in the history
  • Loading branch information
david-sieg authored Jun 20, 2024
1 parent 8805f32 commit 13ac4d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/zabbix_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
zabbix_repo_version: "{{ zabbix_agent_version }}"
zabbix_repo_package: "{{ zabbix_agent_package }}"
zabbix_repo_apt_priority: "{{ zabbix_agent_apt_priority | default (omit) }}"
when: zabbix_manage_repo | default(true)
when:
- zabbix_manage_repo | default(true)
- not (zabbix_agent_docker | bool) or ansible_os_family == "Windows"

- name: "Install the correct repository"
ansible.builtin.include_tasks: "{{ ansible_os_family }}.yml"
Expand Down

0 comments on commit 13ac4d3

Please sign in to comment.