From 6afdd5fe7ced134e8c2eb292cda4fa183d15c60d Mon Sep 17 00:00:00 2001 From: Martin Eiswirth Date: Fri, 11 Oct 2024 14:08:37 +0200 Subject: [PATCH] copy all content of setup folders --- roles/zabbix_agent/tasks/Windows.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/roles/zabbix_agent/tasks/Windows.yml b/roles/zabbix_agent/tasks/Windows.yml index 99852d074..447058bbe 100644 --- a/roles/zabbix_agent/tasks/Windows.yml +++ b/roles/zabbix_agent/tasks/Windows.yml @@ -250,13 +250,9 @@ - name: "Windows | Copy binary files to expected location" ansible.windows.win_copy: - src: "{{ zabbix_win_install_dir_setup }}\\bin\\{{ item }}" - dest: "{{ zabbix_win_install_dir_bin }}\\{{ item }}" + src: "{{ zabbix_win_install_dir_setup }}\\bin\\" + dest: "{{ zabbix_win_install_dir_bin }}\\" remote_src: true - loop: - - "{{ zabbix_win_exe_name }}" - - zabbix_sender.exe - - zabbix_get.exe when: - zabbix_agent_version_change | default(false) or not zabbix_windows_binaries.stat.exists - zabbix_agent_win_download_zip is changed or file_info.stat.exists @@ -265,8 +261,8 @@ - name: "Windows | Copy initial configuration to expected location" ansible.windows.win_copy: - src: "{{ zabbix_win_install_dir_setup }}\\conf\\{{ zabbix_win_config_name }}" - dest: "{{ zabbix_win_install_dir_conf }}\\{{ zabbix_win_config_name }}" + src: "{{ zabbix_win_install_dir_setup }}\\conf\\" + dest: "{{ zabbix_win_install_dir_conf }}\\" force: false remote_src: true when: