From 01fb0f69f89aedbd745d12862ec0acda7a4a0aa0 Mon Sep 17 00:00:00 2001 From: qwmd Date: Sat, 26 Dec 2020 11:02:35 +0100 Subject: Add extra check for directory and packages --- roles/ssh_dns/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/ssh_dns/tasks') diff --git a/roles/ssh_dns/tasks/main.yml b/roles/ssh_dns/tasks/main.yml index c134d1b..0942e68 100644 --- a/roles/ssh_dns/tasks/main.yml +++ b/roles/ssh_dns/tasks/main.yml @@ -4,6 +4,12 @@ --- +- name: create config directory + file: + path: "{{ lookup('env', 'HOME') }}/.ssh/config.d" + state: directory + mode: 0700 + - name: Generate template to localhost template: src: templates/generate_dns.j2 -- cgit v1.2.3