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 /handlers | |
| 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 'handlers')
| -rw-r--r-- | handlers/main.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/handlers/main.yml b/handlers/main.yml index 6838ab5..f73f8db 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,14 +1,14 @@ -- name: Restart NSD [ Linux ] +- name: 'sv: Restart NSD' runit: name: nsd state: restarted listen: - Restart NSD - when: ansible_facts['system'].lower() == "linux" -- name: Restart NSD [ OpenBSD ] + when: use_runit +- name: Restart NSD service: name: nsd state: restarted listen: - Restart NSD - when: ansible_facts['system'].lower() == "openbsd" + when: 'not use_runit' |
