aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorqwmd <me@rgoncalves.se>2020-12-26 11:02:35 +0100
committerqwmd <me@rgoncalves.se>2020-12-26 11:13:31 +0100
commit01fb0f69f89aedbd745d12862ec0acda7a4a0aa0 (patch)
tree608e2f830edcb8f52a490521a59c51263911049f /roles
parent95a730a8a335c543d0e513622fedd338c3d1d443 (diff)
downloadinfrastructure-01fb0f69f89aedbd745d12862ec0acda7a4a0aa0.tar.gz
Add extra check for directory and packages
Diffstat (limited to 'roles')
-rw-r--r--roles/ssh_dns/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
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
remember that computers suck.