Add chromium from linux mint

This commit is contained in:
Przemyslaw Grondek 2023-06-14 15:08:10 +02:00
parent 678b0ec8c4
commit 2eeb9a6e76
3 changed files with 52 additions and 0 deletions

View File

@ -15,3 +15,4 @@
- laptop - laptop
- prusa-slicer - prusa-slicer
- intellij - intellij
- chromium

View File

@ -0,0 +1,7 @@
Package: *
Pin: release o=linuxmint
Pin-Priority: -1
Package: chromium
Pin: release o=linuxmint
Pin-Priority: 1000

View File

@ -0,0 +1,44 @@
---
- become: yes
block:
- name: Gather the package facts
ansible.builtin.package_facts:
manager: auto
- name: add mint gpg key
command: apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A1715D88E1DF1F24 40976EAF437D05B5 3B4FE6ACC0B21F32 A6616109451BBBF2
- name: remove snap
community.general.snap:
name: chromium
state: absent
when:
- "'chromium-browser' in ansible_facts.packages"
- ansible_facts.packages['chromium-browser'][0].version == "1:85.0.4183.83-0ubuntu2.22.04.1"
- name: remove apt snap wrapper version
apt:
state: absent
pkg:
- chromium
- chromium-browser
when:
- "'chromium-browser' in ansible_facts.packages"
- ansible_facts.packages['chromium-browser'][0].version == "1:85.0.4183.83-0ubuntu2.22.04.1"
- name: add linux mint repo
apt_repository:
repo: deb http://packages.linuxmint.com vera upstream
state: present
filename: linux-mint
- name: pin linux mint version of chromium
copy:
src: etc/apt/preferences.d/mint-chromium
dest: /etc/apt/preferences.d/mint-chromium
- name: install chromium
apt:
update_cache: yes
pkg:
- chromium