Install dnscrypt-proxy from ubuntu repos (#1859)

This commit is contained in:
Jack Ivanov 2020-08-07 18:15:13 +01:00 committed by GitHub
parent 4e793ddf65
commit 8b2b57deda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
--- ---
- name: Add the repository - block:
- name: Add the repository
apt_repository: apt_repository:
state: present state: present
codename: "{{ ansible_distribution_release }}" codename: "{{ ansible_distribution_release }}"
@ -9,19 +10,20 @@
retries: 10 retries: 10
delay: 3 delay: 3
- name: Install dnscrypt-proxy - name: Configure unattended-upgrades
apt:
name: dnscrypt-proxy
state: present
update_cache: true
- name: Configure unattended-upgrades
copy: copy:
src: 50-dnscrypt-proxy-unattended-upgrades src: 50-dnscrypt-proxy-unattended-upgrades
dest: /etc/apt/apt.conf.d/50-dnscrypt-proxy-unattended-upgrades dest: /etc/apt/apt.conf.d/50-dnscrypt-proxy-unattended-upgrades
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
when: ansible_facts['distribution_version'] is version('20.04', '<')
- name: Install dnscrypt-proxy
apt:
name: dnscrypt-proxy
state: present
update_cache: true
- block: - block:
- name: Ubuntu | Configure AppArmor policy for dnscrypt-proxy - name: Ubuntu | Configure AppArmor policy for dnscrypt-proxy