1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic_archiver.git synced 2024-08-16 10:09:49 +02:00

update linting

This commit is contained in:
L3D 2022-03-27 22:41:36 +02:00
parent d73934b10c
commit 09aa4d6bef
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 5 additions and 5 deletions

View file

@ -2,13 +2,13 @@
# tasks file for skeleton # tasks file for skeleton
- name: reformat dict if necessary - name: reformat dict if necessary
set_fact: ansible.builtin.set_fact:
restic_archiver__backups: "{{ restic_archiver__backups|dict2items|json_query('[*].value') }}" restic_archiver__backups: "{{ restic_archiver__backups|dict2items|json_query('[*].value') }}"
when: when:
- restic_archiver__backups | type_debug == "dict" - restic_archiver__backups | type_debug == "dict"
- name: Create backup credentials - name: Create backup credentials
template: ansible.builtin.template:
src: restic_access_Linux.j2 src: restic_access_Linux.j2
dest: '{{ restic_script_dir }}/access-{{ item.name }}.sh' dest: '{{ restic_script_dir }}/access-{{ item.name }}.sh'
mode: '0700' mode: '0700'
@ -23,7 +23,7 @@
- item.repo in restic_repos - item.repo in restic_repos
- name: Create backup script - name: Create backup script
template: ansible.builtin.template:
src: restic_script_Linux.j2 src: restic_script_Linux.j2
dest: '{{ restic_script_dir }}/backup-{{ item.name }}.sh' dest: '{{ restic_script_dir }}/backup-{{ item.name }}.sh'
mode: '0700' mode: '0700'
@ -38,7 +38,7 @@
- item.repo in restic_repos - item.repo in restic_repos
- name: Setup CRON jobs - name: Setup CRON jobs
cron: ansible.builtin.cron:
name: 'do1jlr.restic_archiver {{ item.name }}' name: 'do1jlr.restic_archiver {{ item.name }}'
job: 'CRON=true {{ restic_script_dir }}/backup-{{ item.name }}.sh' job: 'CRON=true {{ restic_script_dir }}/backup-{{ item.name }}.sh'
minute: '{{ item.schedule_minute | default("*") }}' minute: '{{ item.schedule_minute | default("*") }}'

View file

@ -1,3 +1,3 @@
--- ---
playbook_version_number: 53 # should be int playbook_version_number: 54 # should be int
playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version' playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version'