first commit
This commit is contained in:
20
roles/windows_install-heavy-forwarder/tasks/main.yml
Normal file
20
roles/windows_install-heavy-forwarder/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
# 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
|
||||
Reference in New Issue
Block a user