mirror of
https://github.com/trailofbits/algo
synced 2024-11-18 09:25:38 +00:00
8602a697cc
* Move DNS adblocking to dnscrypt-proxy * Update docs * remove unneeded variable dnscrypt_proxy_version * Update to the latest dnscrypt-proxy version * install.sh fix * spelling
35 lines
899 B
YAML
35 lines
899 B
YAML
---
|
|
- name: Include tasks for Ubuntu
|
|
include_tasks: ubuntu.yml
|
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
|
|
|
- name: Include tasks for FreeBSD
|
|
include_tasks: freebsd.yml
|
|
when: ansible_distribution == 'FreeBSD'
|
|
|
|
- name: dnscrypt-proxy ip-blacklist configured
|
|
template:
|
|
src: ip-blacklist.txt.j2
|
|
dest: "{{ config_prefix|default('/') }}etc/dnscrypt-proxy/ip-blacklist.txt"
|
|
notify:
|
|
- restart dnscrypt-proxy
|
|
|
|
- name: dnscrypt-proxy configured
|
|
template:
|
|
src: dnscrypt-proxy.toml.j2
|
|
dest: "{{ config_prefix|default('/') }}etc/dnscrypt-proxy/dnscrypt-proxy.toml"
|
|
notify:
|
|
- restart dnscrypt-proxy
|
|
|
|
- name: Include DNS adblocking tasks
|
|
import_tasks: dns_adblocking.yml
|
|
when: algo_dns_adblocking
|
|
|
|
- meta: flush_handlers
|
|
|
|
- name: dnscrypt-proxy enabled and started
|
|
service:
|
|
name: dnscrypt-proxy
|
|
state: started
|
|
enabled: true
|