chd/deployments/splunkDeployServers/deploy-SplunkModules.yml

19 lines
730 B
YAML
Raw Normal View History

- name: Copy splunk modules to corp deploy server
hosts: corp
# vars_files:
# - mojo-vars-vault.yml
2018-07-14 23:57:23 +00:00
remote_user: josiah_ledbetter
tasks:
- name: Copy item to remote server
copy:
2018-07-14 23:57:23 +00:00
# make sure the permissions of the file you are copying are readable by ansible user
src: /Users/josiah_ledbetter/Documents/projects/splunk/configs/filething/
# src must not end in "/" or it will only copy files inside dir instead of entire dir
2018-07-14 23:57:23 +00:00
dest: /opt/splunk/temp/
owner: splunk
2018-07-14 23:57:23 +00:00
group: splunk
# these below affect the entire task, and should not go under the command's indention level. This took WAY too longer to figure out.
become: "true"
become_method: sudo
become_user: root