technitium wip
This commit is contained in:
Binary file not shown.
@@ -4,7 +4,7 @@
|
|||||||
hosts:
|
hosts:
|
||||||
- localhost
|
- localhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
become: false
|
become: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- technitium
|
- technitium
|
||||||
|
|||||||
@@ -32,3 +32,26 @@
|
|||||||
dest: /tmp/technitium_{{ technitium_version }}.tar
|
dest: /tmp/technitium_{{ technitium_version }}.tar
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
url: https://download.technitium.com/dns/archive/{{ technitium_version_numeric }}/DnsServerPortable.tar.gz
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user