diff --git a/roles/etcd/defaults/main.yml b/roles/etcd/defaults/main.yml index 6326741b35898f748461a37159eaab74cac99f83..8fd72f3dbc7b9e94957b85b51685457d8bff0684 100644 --- a/roles/etcd/defaults/main.yml +++ b/roles/etcd/defaults/main.yml @@ -2,6 +2,7 @@ # Set to false to only do certificate management etcd_cluster_setup: true +etcd_backup_prefix: "/var/backups" etcd_bin_dir: "{{ local_release_dir }}/etcd/etcd-{{ etcd_version }}-linux-amd64/" etcd_data_dir: "/var/lib/etcd" diff --git a/roles/etcd/handlers/backup.yml b/roles/etcd/handlers/backup.yml index 9a611296b8265dc50ce27541591bda93fe0e9f13..68fe71f07f47d3d4424375e0ee9d90e358fe32d3 100644 --- a/roles/etcd/handlers/backup.yml +++ b/roles/etcd/handlers/backup.yml @@ -3,7 +3,6 @@ command: /bin/true notify: - Refresh Time Fact - - Set etcd Backup Directory Prefix - Set Backup Directory - Create Backup Directory - Backup etcd v2 data @@ -13,10 +12,6 @@ - name: Refresh Time Fact setup: filter=ansible_date_time -- name: Set etcd Backup Directory Prefix - set_fact: - etcd_backup_prefix: '/var/backups' - - name: Set Backup Directory set_fact: etcd_backup_directory: "{{ etcd_backup_prefix }}/etcd-{{ ansible_date_time.date }}_{{ ansible_date_time.time }}"