From a724dfc74070f6d2ad94ba10995009e886452b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= <felix@thegcat.net> Date: Mon, 29 Nov 2021 19:43:06 +0100 Subject: [PATCH] Fix ansible-lint var-spacing violations --- tasks/main.yml | 8 ++++---- tasks/onserver.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7ac60cf..fce62da 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,15 +11,15 @@ - import_tasks: onserver.yml vars: - borgbackup_source_key: "{{hostkey.stdout}}" - borgbackup_source_host: "{{ansible_hostname}}" - delegate_to: "{{borgbackup_target_host}}" + borgbackup_source_key: "{{ hostkey.stdout }}" + borgbackup_source_host: "{{ ansible_hostname }}" + delegate_to: "{{ borgbackup_target_host }}" - name: Check if Repo already exists stat: path: "{{ borgbackup_pool }}/{{ ansible_hostname }}/backup" register: repo - delegate_to: "{{borgbackup_target_host}}" + delegate_to: "{{ borgbackup_target_host }}" - name: Gather facts for backup target setup: diff --git a/tasks/onserver.yml b/tasks/onserver.yml index 83eb052..8782bea 100644 --- a/tasks/onserver.yml +++ b/tasks/onserver.yml @@ -32,7 +32,7 @@ - name: Set permissions file: - path: "{{item}}" + path: "{{ item }}" owner: "borgbackup" group: "borgbackup" mode: 0700 @@ -44,5 +44,5 @@ - name: Add public key authorized_key: user: "borgbackup" - key: "{{borgbackup_source_key}}" + key: "{{ borgbackup_source_key }}" key_options: "command=\"cd {{ hostvars[borgbackup_target_host]['borgbackup_pool'] | default(borgbackup_pool) }}/{{ borgbackup_source_host }};borg serve --restrict-to-path {{ hostvars[borgbackup_target_host]['borgbackup_pool'] | default(borgbackup_pool) }}/{{ borgbackup_source_host }}\",restrict" -- GitLab