From 8603ce3cb03db0b1b0c9fde6a9551cb5411c798e Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Thu, 1 Aug 2024 11:29:39 +0200 Subject: [PATCH] fix: ensure ssh profile dir is created --- ansible/roles/ssh/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/roles/ssh/tasks/main.yaml b/ansible/roles/ssh/tasks/main.yaml index 164d667..0d18721 100644 --- a/ansible/roles/ssh/tasks/main.yaml +++ b/ansible/roles/ssh/tasks/main.yaml @@ -44,6 +44,11 @@ vars: tempdir_known_hosts: "{{ tempdir_known_hosts }}" +- name: Ensure ssh config profiles dir exists + file: + path: "{{ home }}/.ssh/profiles" + state: directory + - name: Load ssh config of profiles template: src: "{{ home }}/.dots/profiles/{{ item.name }}/configs/ssh/config"