summaryrefslogtreecommitdiff
path: root/vars
diff options
context:
space:
mode:
Diffstat (limited to 'vars')
-rw-r--r--vars/main.yml14
-rw-r--r--vars/openbsd.yml5
2 files changed, 19 insertions, 0 deletions
diff --git a/vars/main.yml b/vars/main.yml
new file mode 100644
index 0000000..8e4dbe5
--- /dev/null
+++ b/vars/main.yml
@@ -0,0 +1,14 @@
+---
+is_alpine: '{{ansible_facts["system"].lower() == "linux" and ansible_facts["distribution"].lower() == "alpine"}}'
+is_voidlinux: '{{ansible_facts["system"].lower() == "linux" and ansible_facts["distribution"].lower() == "void"}}'
+is_rhel: '{{ansible_facts["system"].lower() == "linux" and ansible_facts["os_family"].lower() == "redhat"}}'
+is_deb: '{{ansible_facts["system"].lower() == "linux" and ansible_facts["os_family"].lower() == "debian"}}'
+is_openbsd: '{{ansible_facts["system"].lower() == "openbsd"}}'
+
+
+# Overridden in other vars based on OS
+use_runit: false
+nsd_conf: /etc/nsd/nsd.conf
+zone_dir: /etc/nsd/zones
+zone_owner: root
+zone_group: nsd
diff --git a/vars/openbsd.yml b/vars/openbsd.yml
new file mode 100644
index 0000000..dd1a03e
--- /dev/null
+++ b/vars/openbsd.yml
@@ -0,0 +1,5 @@
+---
+nsd_conf: /var/nsd/etc/nsd.conf
+zone_dir: /var/nsd/zones/master
+zone_group: _nsd
+use_runit: false