From b892f1d7262b36e2ba895768272779571c613adf Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Mon, 22 May 2023 23:32:53 +0200 Subject: Add YAMLLint rules Fix linting errors that came up with the new rules Main changes: * Enforce YAML document start headers * Enforce spacing with commas, colons and hyphens * Enforce indentation * Enforce use of quotes only then required * Enforce use of single quotes over double quotes * Enforce use of true/false over yes/no and derivatives * [..] Other minor rules that were already followed Signed-off-by: Colin Wilk --- tasks/server_setup.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tasks/server_setup.yml') diff --git a/tasks/server_setup.yml b/tasks/server_setup.yml index 6b16e29..b0a8251 100644 --- a/tasks/server_setup.yml +++ b/tasks/server_setup.yml @@ -4,14 +4,14 @@ name: borg comment: Borgbackup user create_home: true - home: "{{ borg_server_user_home }}" + home: '{{ borg_server_user_home }}' generate_ssh_key: true become: true - delegate_to: "{{ borg_server_host }}" + delegate_to: '{{ borg_server_host }}' - name: Make sure authorized keys exists ansible.builtin.file: - path: "{{ borg_server_user_home }}/.ssh/authorized_keys" + path: '{{ borg_server_user_home }}/.ssh/authorized_keys' state: touch owner: borg group: borg @@ -19,4 +19,4 @@ access_time: preserve modification_time: preserve become: true - delegate_to: "{{ borg_server_host }}" + delegate_to: '{{ borg_server_host }}' -- cgit v1.2.3