19 lines
572 B
YAML
19 lines
572 B
YAML
|
# vi: ft=yaml.ansible
|
||
|
- name: install dnsproxy
|
||
|
unarchive:
|
||
|
src: https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/2.1.5/dnscrypt-proxy-linux_x86_64-2.1.5.tar.gz
|
||
|
dest: /opt/
|
||
|
include:
|
||
|
- linux-x86_64/dnscrypt-proxy
|
||
|
extra_opts: ['--strip-components=1']
|
||
|
remote_src: yes
|
||
|
- name: setup service
|
||
|
shell:
|
||
|
argv:
|
||
|
- /opt/dnscrypt-proxy
|
||
|
- -service
|
||
|
- install
|
||
|
creates: /etc/systemd/system/dnscrypt-proxy.service
|
||
|
- name: ensure dnsproxy is running
|
||
|
service: name=dnscrypt-proxy state=started enabled=yes daemon-reload=true
|