Merge pull request #122 from markstos/issue-121-drop-jmespath

deps: Remove jmespath requirement with native solution.
This commit is contained in:
L3D 2024-04-04 14:48:28 +02:00 committed by GitHub
commit 2119bb8ff2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -60,8 +60,8 @@ There are multiple ways to install the role. Either clone or download it directl
ansible-galaxy install roles-ansible.restic
```
## Requirements
* bzip2
* jmespath
## Role Variables

View file

@ -1,7 +1,7 @@
---
- name: (BACKUP) reformat dict if necessary
ansible.builtin.set_fact:
restic_backups: "{{ restic_backups | dict2items | json_query('[*].value') }}"
restic_backups: "{{ restic_backups | default([]) | map('extract', restic_backups) | list }}"
when:
- restic_backups | type_debug == "dict"