aboutsummaryrefslogtreecommitdiffstats
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
parent95a730a8a335c543d0e513622fedd338c3d1d443 (diff)
downloadinfrastructure-01fb0f69f89aedbd745d12862ec0acda7a4a0aa0.tar.gz
Add extra check for directory and packages
-rw-r--r--group_vars/all.yml6
-rw-r--r--roles/ssh_dns/tasks/main.yml6
2 files changed, 12 insertions, 0 deletions
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
remember that computers suck.