diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2025-12-16 23:02:49 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2025-12-16 23:02:49 -0500 |
| commit | a468044c0337d1a2ac0dab2ce3efc4ad766f81a3 (patch) | |
| tree | ca7d1523a6b43e14dc4fb6d2cd15966774faa237 /vars/main.yml | |
| parent | 256ed8e7653b1963e1cc2b6d30aa636e9766d07b (diff) | |
| download | nsd-a468044c0337d1a2ac0dab2ce3efc4ad766f81a3.tar.gz nsd-a468044c0337d1a2ac0dab2ce3efc4ad766f81a3.tar.xz | |
Rework the NSD role to support more operating systems with minimal effort and duplication
Diffstat (limited to 'vars/main.yml')
| -rw-r--r-- | vars/main.yml | 14 |
1 files changed, 14 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 |
