Skip to content

Commit

Permalink
Merge pull request #4 from Adito5393/add-support-ansible-lint-6-13-1
Browse files Browse the repository at this point in the history
Add support for Ansible-lint 6.13.1
  • Loading branch information
chrodriguez authored Mar 1, 2023
2 parents 44e8555 + cec4cb5 commit 73cea9a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ exclude_paths:
- .pre-commit-config.yaml
- .github/
offline: true

warn_list: # TODO: fix warnings from ansible-lint 6.13.1 using ansible 2.13.7 & incl. to tox.ini
- fqcn[action-core]
- name[template]
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ restic_prometehus_exporter_script: '{{ restic_script_dir }}/restic_prometehus_ex
restic_prometehus_exporter_metrics_basedir: /var/lib/node-exporter

restic_failure_template: restic_failure_unit.j2
restic_failure_script: '{{restic_script_dir }}/unit-failure'
restic_failure_script: '{{ restic_script_dir }}/unit-failure'
restic_failure_mail_to: "root"

restic_non_root_setup: false
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
update_cache: true
changed_when: false
when: ansible_distribution in ["Debian", "Ubuntu"]
- name: Install dependencies
- name: Install dependencies
package:
name: "{{ item }}"
state: present
Expand Down
1 change: 1 addition & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
url: '{{ restic_url }}'
dest: '{{ restic_download_path }}/restic.bz2'
checksum: "sha256:{{ restic_url_checksums }}"
mode: "0644"
register: get_url_restic

- name: Install restic
Expand Down
2 changes: 1 addition & 1 deletion tasks/restic.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Reformat dict if necessary
set_fact:
restic_backups: '{{ restic_backups|dict2items|json_query("[*].value") }}'
restic_backups: '{{ restic_backups | dict2items | json_query("[*].value") }}'
when:
- restic_backups | type_debug == "dict"

Expand Down

0 comments on commit 73cea9a

Please sign in to comment.