mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-11-04 19:13:30 +01:00
parent
c70e0d660a
commit
b45ec65427
2 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ There are multiple ways to install the role. Either clone or download it directl
|
||||||
ansible-galaxy install roles-ansible.restic
|
ansible-galaxy install roles-ansible.restic
|
||||||
```
|
```
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* bzip2
|
* bzip2
|
||||||
* jmespath
|
|
||||||
|
|
||||||
## Role Variables
|
## Role Variables
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: (BACKUP) reformat dict if necessary
|
- name: (BACKUP) reformat dict if necessary
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
restic_backups: "{{ restic_backups | dict2items | json_query('[*].value') }}"
|
restic_backups: "{{ restic_backups | default([]) | map('extract', restic_backups) | list }}"
|
||||||
when:
|
when:
|
||||||
- restic_backups | type_debug == "dict"
|
- restic_backups | type_debug == "dict"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue