From 1fa37669afa3b3c9f9916787e6e3aaa1cba344b4 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 19 Jul 2022 21:39:48 +0200 Subject: [PATCH] Trying to fix firefox from apt --- .../files/etc/apt/apt.copnf.d/51unattended-upgrades-firefox | 1 + roles/firefox/files/etc/apt/preferences.d/mozillateamppa | 2 +- roles/firefox/tasks/ppa.yml | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 roles/firefox/files/etc/apt/apt.copnf.d/51unattended-upgrades-firefox diff --git a/roles/firefox/files/etc/apt/apt.copnf.d/51unattended-upgrades-firefox b/roles/firefox/files/etc/apt/apt.copnf.d/51unattended-upgrades-firefox new file mode 100644 index 0000000..358d833 --- /dev/null +++ b/roles/firefox/files/etc/apt/apt.copnf.d/51unattended-upgrades-firefox @@ -0,0 +1 @@ +Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}"; diff --git a/roles/firefox/files/etc/apt/preferences.d/mozillateamppa b/roles/firefox/files/etc/apt/preferences.d/mozillateamppa index 6c871df..24e9c3d 100644 --- a/roles/firefox/files/etc/apt/preferences.d/mozillateamppa +++ b/roles/firefox/files/etc/apt/preferences.d/mozillateamppa @@ -1,3 +1,3 @@ Package: firefox* Pin: release o=LP-PPA-mozillateam -Pin-Priority: 501 \ No newline at end of file +Pin-Priority: 1001 diff --git a/roles/firefox/tasks/ppa.yml b/roles/firefox/tasks/ppa.yml index 0dda24d..2ac6aff 100644 --- a/roles/firefox/tasks/ppa.yml +++ b/roles/firefox/tasks/ppa.yml @@ -30,6 +30,11 @@ src: etc/apt/preferences.d/mozillateamppa dest: /etc/apt/preferences.d/mozillateamppa + - name: set mozillateam for unattended upgrades + copy: + src: etc/apt/apt.conf.d/51unattended-upgrades-firefox + dest: /etc/apt/apt.conf.d/51unattended-upgrades-firefox + - name: install browser become: yes apt: