Commit ebbf09ae by nadeemshahzad

make timestamp persistent

parent 3e765b80
......@@ -7,8 +7,9 @@
splunk_config_archive: "{{ splunk_host }}-{{ date }}.tar.gz"
splunk_s3_backup_tempdir: "/var/tmp"
splunk_s3_bucket: "{{ splunk_s3_backups_bucket }}"
date: "{{ lookup('pipe', 'date +%Y-%m-%dT%H%M') }}"
tasks:
- set_fact:
date: "{{ lookup('pipe', 'date +%Y-%m-%dT%H%M') }}"
- name: archive splunk configuration dir
command: tar -cpzf "{{ splunk_s3_backup_tempdir }}/{{ splunk_config_archive }}" {{ splunk_config_dir }}
- name: copy tarball to s3 bucket
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment