From fa7f16f814316aa735786613e720917fe216dcfd Mon Sep 17 00:00:00 2001 From: David Kilias Date: Sun, 25 Sep 2022 19:28:57 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20fix=20dependency=20for?= =?UTF-8?q?=20unattended-upgrades?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - resolves https://redmine.n39.eu/issues/722 - role https://github.com/jnv/ansible-role-unattended-upgrades is deprecated - replacement is https://github.com/hifis-net/ansible-role-unattended-upgrades --- all.yml | 2 +- requirements.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/all.yml b/all.yml index 3d14478..c9960e9 100644 --- a/all.yml +++ b/all.yml @@ -25,7 +25,7 @@ - name: Setup unattended-upgrades include_role: - name: ansible-role-unattended-upgrades + name: hifis.unattended-upgrades vars: unattended_origins_patterns: - "origin=Debian,archive=buster-security" diff --git a/requirements.yml b/requirements.yml index e07384b..e23c6a3 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,6 +1,6 @@ --- -- src: git+https://github.com/jnv/ansible-role-unattended-upgrades.git - version: v1.9.0 +- src: hifis.unattended-upgrades + version: v1.12.2 - src: git+https://github.com/adriagalin/ansible.timezone.git version: 3.0.0 - src: git+https://github.com/24367dfa/ansible-role-dehydrated.git From 2efd892bc1a95ce28c413dbfebe9eb714358bdf9 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Fri, 30 Sep 2022 22:23:44 +0200 Subject: [PATCH 2/2] :pencil2: adress issues from PR discussion - fix typo in role name - make origin patterns for unattended upgrades less release specific --- all.yml | 6 +++--- requirements.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/all.yml b/all.yml index c9960e9..82c29ed 100644 --- a/all.yml +++ b/all.yml @@ -25,11 +25,11 @@ - name: Setup unattended-upgrades include_role: - name: hifis.unattended-upgrades + name: hifis.unattended_upgrades vars: unattended_origins_patterns: - - "origin=Debian,archive=buster-security" - - "o=Debian,a=buster-updates" + - "origin=Debian,archive={{ ansible_distribution_release }}-security" + - "o=Debian,a={{ ansible_distribution_release }}-updates" unattended_package_blacklist: [cowsay] unattended_mail: "root" diff --git a/requirements.yml b/requirements.yml index e23c6a3..53073ff 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,5 +1,5 @@ --- -- src: hifis.unattended-upgrades +- src: hifis.unattended_upgrades version: v1.12.2 - src: git+https://github.com/adriagalin/ansible.timezone.git version: 3.0.0