diff options
| author | Colin Wilk <colin.wilk@tum.de> | 2023-05-22 23:32:53 +0200 |
|---|---|---|
| committer | Colin Wilk <colin.wilk@tum.de> | 2023-05-24 19:41:18 +0200 |
| commit | b892f1d7262b36e2ba895768272779571c613adf (patch) | |
| tree | b103e77db04305465cab1331ecddada726893d25 /tasks/server_setup.yml | |
| parent | 1f1f6eeaebc148602085515350eb12829f86c315 (diff) | |
| download | ansible-role-borgbackup-b892f1d7262b36e2ba895768272779571c613adf.tar.gz ansible-role-borgbackup-b892f1d7262b36e2ba895768272779571c613adf.zip | |
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 <colin.wilk@tum.de>
Diffstat (limited to 'tasks/server_setup.yml')
| -rw-r--r-- | tasks/server_setup.yml | 8 |
1 files changed, 4 insertions, 4 deletions
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 }}' |