|
|
@ -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 }}" |
|
|
|