summaryrefslogtreecommitdiffstats
path: root/roles/etcd/tasks/backup/unarchive.yml
blob: a85f533c29b0392e7883909cbd02e266f1f0d612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- shell: ls /var/lib/etcd
  register: output

- debug:
    msg: "output: {{ output }}"

- name: Unarchive backup
  # can't use unarchive https://github.com/ansible/ansible/issues/30821
  # unarchive:
  #   src: "{{ l_etcd_backup_dir }}.tgz"
  #   dest: "{{ l_etcd_backup_dir }}"
  command: >
    tar -xf "{{ l_etcd_backup_dir }}.tgz" -C "{{ etcd_data_dir }}"