--- - name: "Windows | Ensure local dir exists" ansible.windows.win_file: path: "{{ checkmk_windows_local_dir }}" state: directory - name: "Windows | Deploy check-ping.ps1 (DC only)" when: is_dc | default(false) | bool ansible.windows.win_copy: src: "{{ checkmk_windows_scripts_dir }}/check-ping.ps1" dest: "{{ checkmk_windows_local_dir }}\\check-ping.ps1" notify: "checkmk | windows | agent-ensure-running" - name: "Windows | Deploy Veeam configuration backup status check (VBR only)" when: has_veeam_vbr | default(false) | bool ansible.windows.win_copy: src: "{{ checkmk_windows_scripts_dir }}/veeam_config_backup_status.ps1" dest: "{{ checkmk_windows_local_dir }}\\veeam_config_backup_status.ps1" notify: "checkmk | windows | agent-ensure-running" - name: "Windows | Deploy veeam_o365_status.ps1 (VBO only)" when: has_veeam_vbo | default(false) | bool ansible.windows.win_copy: src: "{{ checkmk_windows_scripts_dir }}/veeam_o365_status.ps1" dest: "{{ checkmk_windows_local_dir }}\\veeam_o365_status.ps1" notify: "checkmk | windows | agent-ensure-running" - name: "Windows | Deploy Citrix sessions check" when: want_windows_citrix | default(false) | bool ansible.windows.win_copy: src: "{{ checkmk_windows_scripts_dir }}/citrix_sessions_customized.ps1" dest: "{{ checkmk_windows_local_dir }}\\citrix_sessions_customized.ps1" notify: "checkmk | windows | agent-ensure-running" - name: "Windows | Deploy Veeam SureBackup check" when: want_windows_surebackup | default(false) | bool ansible.windows.win_copy: src: "{{ checkmk_windows_scripts_dir }}/veeam_surebackup_status.ps1" dest: "{{ checkmk_windows_local_dir }}\\veeam_surebackup_status.ps1" notify: "checkmk | windows | agent-ensure-running" - name: "Windows | Deploy Windows Backup check" when: want_windows_backup | default(false) | bool ansible.windows.win_copy: src: "{{ checkmk_windows_scripts_dir }}/windows-backup.ps1" dest: "{{ checkmk_windows_local_dir }}\\windows-backup.ps1" notify: "checkmk | windows | agent-ensure-running"