Skip to content

Commit

Permalink
deps: Remove jmespath requirement with native solution.
Browse files Browse the repository at this point in the history
Issue: #121
  • Loading branch information
markstos committed Apr 4, 2024
1 parent c70e0d6 commit b45ec65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tasks/backup.yml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit b45ec65

Please sign in to comment.