From e3d2e8a31b3ced4c0570a233f76c4f447ff4773e Mon Sep 17 00:00:00 2001 From: Alexander Dahl <alex@netz39.de> Date: Sat, 1 Mar 2025 22:09:10 +0100 Subject: [PATCH] :rotating_light: Fix linter warning of type 'name[template]' This warning: name[template]: Jinja templates should only be at the end of 'name' setup-ssh.yml:6 Task/Handler: Ensure {{ lookup('env', 'HOME') }}/.ssh/config.d/ dir is present Reason for that warning is thin. Using the actual home dir here adds not much value, so keep it symbolic. Link: https://ansible.readthedocs.io/projects/lint/rules/name/ --- setup-ssh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-ssh.yml b/setup-ssh.yml index 8494297..58fcbcd 100644 --- a/setup-ssh.yml +++ b/setup-ssh.yml @@ -3,7 +3,7 @@ hosts: localhost tasks: - - name: Ensure {{ lookup('env', 'HOME') }}/.ssh/config.d/ dir is present + - name: Ensure $HOME/.ssh/config.d/ dir is present ansible.builtin.file: path: "{{ lookup('env', 'HOME') }}/.ssh/config.d/" state: directory