Files
2024-07-12 12:58:40 +02:00

20 lines
655 B
YAML

---
# tasks file for windows_install-heavy-forwarder
- name: Copy Universal forwarder to target
ansible.windows.win_copy:
src: splunkforwarder-9.0.4-de405f4a7979-x64-release.msi
dest: C:\Users\Public\Downloads\splunkforwarder.msi
- name: install splunk forwarder
win_package:
path: C:\Users\Public\Downloads\splunkforwarder.msi
arguments: 'GENRANDOMPASSWORD=1 DEPLOYMENT_SERVER="gnd-mgt-004.adagility.net:8089" AGREETOLICENSE=Yes /quiet'
creates_service: "SplunkForwarder"
state: present
- name: Remove a file, if present
ansible.windows.win_file:
path: C:\Users\Public\Downloads\splunkforwarder.msi
state: absent