From 01fb0f69f89aedbd745d12862ec0acda7a4a0aa0 Mon Sep 17 00:00:00 2001
From: qwmd <me@rgoncalves.se>
Date: Sat, 26 Dec 2020 11:02:35 +0100
Subject: Add extra check for directory and packages

---
 group_vars/all.yml           | 6 ++++++
 roles/ssh_dns/tasks/main.yml | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/group_vars/all.yml b/group_vars/all.yml
index a42d8cc..a8a4543 100644
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
@@ -23,6 +23,7 @@ packages:
   alpine:
     extra: "shadow"
     java: "openjdk8-jre"
+    neovim: "neovim"
     node_exporter: "prometheus-node-exporter"
     sshfs: "sshfs"
     wireguard: "wireguard-virt wireguard-tools ip6tables"
@@ -32,11 +33,13 @@ packages:
     java: "jdk-openjdk"
     neovim: "neovim python-pynvim"
     node_exporter: "prometheus-node-exporter-bin"
+    qutebrowser: "qutebrowser"
     sshfs: "sshfs"
     wireguard: "wireguard-dkms wireguard-tools"
 
   debian:
     extra: ""
+    neovim: "neovim"
     node_exporter: "node_exporter"
     sshfs: "sshfs"
     wireguard: "wireguard"
@@ -44,6 +47,7 @@ packages:
   freebsd:
     extra: ""
     java: ""
+    neovim: "neovim"
     node_exporter: "node_exporter"
     sshfs: "fusefs-sshfs"
     wireguard: "wireguard"
@@ -51,6 +55,8 @@ packages:
   openbsd:
     extra: ""
     java: ""
+    neovim: "neovim"
     node_exporter: "node_exporter"
+    qutebrowser: "qutebrowser"
     sshfs: "sshfs-fuse"
     wireguard: "wireguard-tools"
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