backup_server_certificates.yml 327 B

1234567891011
  1. ---
  2. - name: Backup etcd certificates
  3. command: >
  4. tar -czvf /etc/etcd/etcd-server-certificate-backup-{{ ansible_date_time.epoch }}.tgz
  5. {{ etcd_conf_dir }}/ca.crt
  6. {{ etcd_conf_dir }}/server.crt
  7. {{ etcd_conf_dir }}/server.key
  8. {{ etcd_conf_dir }}/peer.crt
  9. {{ etcd_conf_dir }}/peer.key
  10. args:
  11. warn: no