2018-07-09 18:29:48 +00:00
|
|
|
- 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
|
2018-07-09 18:29:48 +00:00
|
|
|
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/
|
2018-07-09 18:29:48 +00:00
|
|
|
# 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/
|
2018-07-09 18:29:48 +00:00
|
|
|
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
|