mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 07:33:52 +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 {
|
Unattended-Upgrade::Allowed-Origins {
|
||||||
"${distro_id}:${distro_codename}-security";
|
"${distro_id}:${distro_codename}-security";
|
||||||
"${distro_id}:${distro_codename}-updates";
|
"${distro_id}:${distro_codename}-updates";
|
||||||
{% if wireguard_enabled %}
|
|
||||||
"LP-PPA-wireguard-wireguard:${distro_codename}";
|
|
||||||
{% endif %}
|
|
||||||
// "${distro_id}:${distro_codename}-proposed";
|
// "${distro_id}:${distro_codename}-proposed";
|
||||||
// "${distro_id}:${distro_codename}-backports";
|
// "${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
|
until: result|succeeded
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 3
|
delay: 3
|
||||||
|
|
||||||
- name: Install dnscrypt-proxy
|
- name: Install dnscrypt-proxy
|
||||||
apt:
|
apt:
|
||||||
name: dnscrypt-proxy
|
name: dnscrypt-proxy
|
||||||
state: latest
|
state: latest
|
||||||
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 | Unbound profile for apparmor configured
|
- name: Ubuntu | Unbound profile for apparmor configured
|
||||||
copy:
|
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
|
state: present
|
||||||
update_cache: true
|
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
|
- name: Ensure the required directories exist
|
||||||
file:
|
file:
|
||||||
dest: "{{ wireguard_config_path }}/{{ item }}"
|
dest: "{{ wireguard_config_path }}/{{ item }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue