Add scripts for firefox

This commit is contained in:
Przemek Grondek 2022-05-18 00:27:32 +02:00
parent 5ee7952d6a
commit 60c44d97e4
6 changed files with 45 additions and 7 deletions

View File

@ -3,6 +3,7 @@
roles:
- dwm
- ubuntu
- firefox
- docker
- java
- jetbrains

View File

@ -0,0 +1,3 @@
Package: firefox*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 501

View File

@ -0,0 +1,6 @@
---
- import_tasks: upstream.yml
when: ansible_distribution == "Ubuntu" and ansible_distribution_version != "22.04"
- import_tasks: ppa.yml
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "22.04"

View File

@ -0,0 +1,23 @@
- become: yes
block:
- name: remove snap
community.general.snap:
name: firefox
state: absent
- name: add ppa
apt_repository:
repo: ppa:mozillateam/ppa
- name: set mozillateam higher priority
copy:
src: etc/apt/preferences.d/mozillateamppa
dest: /etc/apt/preferences.d/mozillateamppa
- name: install browser
become: yes
apt:
update_cache: yes
state: latest
pkg:
- firefox

View File

@ -0,0 +1,12 @@
- name: remove snap
become: yes
community.general.snap:
name: firefox
state: absent
- name: install browser
become: yes
apt:
update_cache: yes
pkg:
- firefox

View File

@ -36,13 +36,6 @@
pkg:
- git
- name: install browser
become: yes
apt:
update_cache: yes
pkg:
- firefox
- name: install gui apps
become: yes
apt: