Install dnscrypt-proxy from ubuntu repos

This commit is contained in:
Jack Ivanov 2020-08-06 21:12:10 +01:00
parent be96315775
commit 18c1c9fb2e

View file

@ -1,13 +1,23 @@
--- ---
- name: Add the repository - block:
apt_repository: - name: Add the repository
state: present apt_repository:
codename: "{{ ansible_distribution_release }}" state: present
repo: ppa:shevchuk/dnscrypt-proxy codename: "{{ ansible_distribution_release }}"
register: result repo: ppa:shevchuk/dnscrypt-proxy
until: result is succeeded register: result
retries: 10 until: result is succeeded
delay: 3 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 - name: Install dnscrypt-proxy
apt: apt:
@ -15,14 +25,6 @@
state: present state: present
update_cache: true 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: - block:
- name: Ubuntu | Configure AppArmor policy for dnscrypt-proxy - name: Ubuntu | Configure AppArmor policy for dnscrypt-proxy
copy: copy: