Skip to content

Commit 8b2b57d

Browse files
authored
Install dnscrypt-proxy from ubuntu repos (#1859)
1 parent 4e793dd commit 8b2b57d

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

roles/dns/tasks/ubuntu.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
---
2-
- name: Add the repository
3-
apt_repository:
4-
state: present
5-
codename: "{{ ansible_distribution_release }}"
6-
repo: ppa:shevchuk/dnscrypt-proxy
7-
register: result
8-
until: result is succeeded
9-
retries: 10
10-
delay: 3
2+
- block:
3+
- name: Add the repository
4+
apt_repository:
5+
state: present
6+
codename: "{{ ansible_distribution_release }}"
7+
repo: ppa:shevchuk/dnscrypt-proxy
8+
register: result
9+
until: result is succeeded
10+
retries: 10
11+
delay: 3
12+
13+
- name: Configure unattended-upgrades
14+
copy:
15+
src: 50-dnscrypt-proxy-unattended-upgrades
16+
dest: /etc/apt/apt.conf.d/50-dnscrypt-proxy-unattended-upgrades
17+
owner: root
18+
group: root
19+
mode: 0644
20+
when: ansible_facts['distribution_version'] is version('20.04', '<')
1121

1222
- name: Install dnscrypt-proxy
1323
apt:
1424
name: dnscrypt-proxy
1525
state: present
1626
update_cache: true
1727

18-
- name: Configure unattended-upgrades
19-
copy:
20-
src: 50-dnscrypt-proxy-unattended-upgrades
21-
dest: /etc/apt/apt.conf.d/50-dnscrypt-proxy-unattended-upgrades
22-
owner: root
23-
group: root
24-
mode: 0644
25-
2628
- block:
2729
- name: Ubuntu | Configure AppArmor policy for dnscrypt-proxy
2830
copy:

0 commit comments

Comments
 (0)