fix ansible-lint errors

This commit is contained in:
Sergey Malyuk
2025-12-15 12:20:12 +03:00
parent 3f4556f3b2
commit 246905a2ee
4 changed files with 11 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
---
- name: "Ensure the path for SSH keys exists"
ansible.builtin.file:
path: "{{ ssh_key_path | dirname }}"
path: "{{ borgmatic_sshkey_path | dirname }}"
state: directory
owner: root
group: root
@@ -11,13 +11,13 @@
register: borgmatic_ssh_key_pair
community.crypto.openssh_keypair:
type: ed25519
path: "{{ ssh_key_path }}"
path: "{{ borgmatic_sshkey_path }}"
comment: "Generated by Ansible for Borgmatic"
force: false
mode: '0600'
- name: "Push the SSH key pair to the Borg repo host"
when: push_pubkey
when: borgmatic_push_pubkey
delegate_to: "{{ repo_server_inventory_hostname }}"
ansible.posix.authorized_key:
user: "{{ repo_server_user }}"

View File

@@ -13,7 +13,7 @@
retries: 3
delay: 1
ansible.builtin.pip:
name: "pipx=={{ pipx_version }}"
name: "pipx=={{ borgmatic_pipx_version }}"
executable: pip3
break_system_packages: true

View File

@@ -16,7 +16,7 @@
vars:
borgmatic_install: false # we handle installation separately to get the recent version
# borgmatic_ssh_key_gen_options: "-t ed25519 -a 100"
borgmatic_ssh_key_path: "{{ ssh_key_path }}"
borgmatic_ssh_key_path: "{{ borgmatic_sshkey_path }}"
borgmatic_schedule_on: "{{ borgmatic_schedule_oncalendar }}"
borgmatic_schedule_max_random_delay: 600
borgmatic_config: "{{ borgmatic_composite_config }}"