Skip to content

Commit

Permalink
Install dnscrypt-proxy from ubuntu repos (trailofbits#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackivanov authored Aug 7, 2020
1 parent 4e793dd commit 8b2b57d
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions roles/dns/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
---
- name: Add the repository
apt_repository:
state: present
codename: "{{ ansible_distribution_release }}"
repo: ppa:shevchuk/dnscrypt-proxy
register: result
until: result is succeeded
retries: 10
delay: 3
- block:
- name: Add the repository
apt_repository:
state: present
codename: "{{ ansible_distribution_release }}"
repo: ppa:shevchuk/dnscrypt-proxy
register: result
until: result is succeeded
retries: 10
delay: 3

- name: Configure unattended-upgrades
copy:
src: 50-dnscrypt-proxy-unattended-upgrades
dest: /etc/apt/apt.conf.d/50-dnscrypt-proxy-unattended-upgrades
owner: root
group: root
mode: 0644
when: ansible_facts['distribution_version'] is version('20.04', '<')

- name: Install dnscrypt-proxy
apt:
name: dnscrypt-proxy
state: present
update_cache: true

- name: Configure unattended-upgrades
copy:
src: 50-dnscrypt-proxy-unattended-upgrades
dest: /etc/apt/apt.conf.d/50-dnscrypt-proxy-unattended-upgrades
owner: root
group: root
mode: 0644

- block:
- name: Ubuntu | Configure AppArmor policy for dnscrypt-proxy
copy:
Expand Down

0 comments on commit 8b2b57d

Please sign in to comment.