mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 22:54:01 +02:00
Split up unattended upgrades (#1041)
This commit is contained in:
parent
b86ebe20d7
commit
53d1113881
5 changed files with 25 additions and 4 deletions
|
@ -2,9 +2,6 @@
|
|||
Unattended-Upgrade::Allowed-Origins {
|
||||
"${distro_id}:${distro_codename}-security";
|
||||
"${distro_id}:${distro_codename}-updates";
|
||||
{% if wireguard_enabled %}
|
||||
"LP-PPA-wireguard-wireguard:${distro_codename}";
|
||||
{% endif %}
|
||||
// "${distro_id}:${distro_codename}-proposed";
|
||||
// "${distro_id}:${distro_codename}-backports";
|
||||
};
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
// Automatically upgrade packages from these (origin:archive) pairs
|
||||
Unattended-Upgrade::Allowed-Origins {
|
||||
"LP-PPA-shevchuk-dnscrypt-proxy:${distro_codename}";
|
||||
};
|
|
@ -8,13 +8,21 @@
|
|||
until: result|succeeded
|
||||
retries: 10
|
||||
delay: 3
|
||||
|
||||
|
||||
- name: Install dnscrypt-proxy
|
||||
apt:
|
||||
name: dnscrypt-proxy
|
||||
state: latest
|
||||
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 | Unbound profile for apparmor configured
|
||||
copy:
|
||||
|
|
4
roles/wireguard/files/50-wireguard-unattended-upgrades
Normal file
4
roles/wireguard/files/50-wireguard-unattended-upgrades
Normal file
|
@ -0,0 +1,4 @@
|
|||
// Automatically upgrade packages from these (origin:archive) pairs
|
||||
Unattended-Upgrade::Allowed-Origins {
|
||||
"LP-PPA-wireguard-wireguard:${distro_codename}";
|
||||
};
|
|
@ -14,6 +14,14 @@
|
|||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Configure unattended-upgrades
|
||||
copy:
|
||||
src: 50-wireguard-unattended-upgrades
|
||||
dest: /etc/apt/apt.conf.d/50-wireguard-unattended-upgrades
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Ensure the required directories exist
|
||||
file:
|
||||
dest: "{{ wireguard_config_path }}/{{ item }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue