summaryrefslogtreecommitdiffstats
path: root/roles/etcd/tasks/certificates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/etcd/tasks/certificates')
-rw-r--r--roles/etcd/tasks/certificates/backup_master_etcd_certificates.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/etcd/tasks/certificates/backup_master_etcd_certificates.yml b/roles/etcd/tasks/certificates/backup_master_etcd_certificates.yml
new file mode 100644
index 000000000..e65b3e5a2
--- /dev/null
+++ b/roles/etcd/tasks/certificates/backup_master_etcd_certificates.yml
@@ -0,0 +1,7 @@
+---
+- name: Backup master etcd certificates
+ shell: >
+ tar -czvf /etc/origin/master/master-etcd-certificate-backup-{{ ansible_date_time.epoch }}.tgz
+ /etc/origin/master/master.etcd-*
+ args:
+ warn: no