From 5fcf27241cf9a601b43f4496f3c5199208207c8f Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 14 Sep 2026 23:04:02 -0400 Subject: [PATCH] technitium wip --- --help/log.config | Bin 0 -> 34 bytes playbooks/testing.yml | 2 +- roles/technitium/tasks/main.yml | 23 +++++++++++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 --help/log.config diff --git a/--help/log.config b/--help/log.config new file mode 100644 index 0000000000000000000000000000000000000000..fca74c3f16cb9dad71eba8ca4eecc4266dd2b936 GIT binary patch literal 34 pcmeYXW?~fAFH0=a&&f~MFG)?#$jdCrEX~zV$tz~aWn^Gr006Yj3GM&@ literal 0 HcmV?d00001 diff --git a/playbooks/testing.yml b/playbooks/testing.yml index 139180c..46dc4bb 100644 --- a/playbooks/testing.yml +++ b/playbooks/testing.yml @@ -4,7 +4,7 @@ hosts: - localhost gather_facts: false - become: false + become: true roles: - technitium diff --git a/roles/technitium/tasks/main.yml b/roles/technitium/tasks/main.yml index 0862a9d..f96334c 100644 --- a/roles/technitium/tasks/main.yml +++ b/roles/technitium/tasks/main.yml @@ -32,3 +32,26 @@ dest: /tmp/technitium_{{ technitium_version }}.tar mode: '0644' url: https://download.technitium.com/dns/archive/{{ technitium_version_numeric }}/DnsServerPortable.tar.gz + +- name: Ensure target directory exists + ansible.builtin.file: + path: /opt/technitium/{{ technitium_version }} + group: root + mode: '0755' + owner: root + state: directory + +- name: Extract release + ansible.builtin.unarchive: + dest: /opt/technitium/{{ technitium_version }} + group: root + mode: '0755' + owner: root + remote_src: true + src: /tmp/technitium_{{ technitium_version }}.tar + +- name: Create symlink to latest release + ansible.builtin.file: + path: /opt/technitium/latest + src: /opt/technitium/{{ technitium_version }} + state: link