From: Kienan Stewart Date: Thu, 26 Sep 2024 13:25:55 +0000 (-0400) Subject: ansible: Allow unattended upgrades from Debian backports X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9d7010d819504d1e4f25b5a2e448b9d8b97efafc;p=lttng-ci.git ansible: Allow unattended upgrades from Debian backports Change-Id: Ia201cb63c660ab2b11757647af363de83d66043c Signed-off-by: Kienan Stewart --- diff --git a/automation/ansible/roles/incus/tasks/install.yml b/automation/ansible/roles/incus/tasks/install.yml index aafcd8a..8889f0f 100644 --- a/automation/ansible/roles/incus/tasks/install.yml +++ b/automation/ansible/roles/incus/tasks/install.yml @@ -2,8 +2,17 @@ - name: Configure bookworm-backports when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '12' - ansible.builtin.apt_repository: - repo: 'deb https://deb.debian.org/debian bookworm-backports main contrib non-free-firmware' + block: + - ansible.builtin.apt_repository: + repo: 'deb https://deb.debian.org/debian bookworm-backports main contrib non-free-firmware' + - ansible.builtin.copy: + content: "Unattended-Upgrade::Origins-Pattern:: \"origin=Debian Backports,codename=${distro_codename}-backports,label=Debian Backports\";\n" + dest: '/etc/apt/apt.conf.d/90unattended_upgrades-backports.conf' + owner: 'root' + group: 'root' + mode: '0644' + notify: + - 'apt update' - name: Install packages ansible.builtin.package: