Add scripts for firefox
This commit is contained in:
parent
5ee7952d6a
commit
60c44d97e4
@ -3,6 +3,7 @@
|
|||||||
roles:
|
roles:
|
||||||
- dwm
|
- dwm
|
||||||
- ubuntu
|
- ubuntu
|
||||||
|
- firefox
|
||||||
- docker
|
- docker
|
||||||
- java
|
- java
|
||||||
- jetbrains
|
- jetbrains
|
||||||
|
3
roles/firefox/files/etc/apt/preferences.d/mozillateamppa
Normal file
3
roles/firefox/files/etc/apt/preferences.d/mozillateamppa
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Package: firefox*
|
||||||
|
Pin: release o=LP-PPA-mozillateam
|
||||||
|
Pin-Priority: 501
|
6
roles/firefox/tasks/main.yml
Normal file
6
roles/firefox/tasks/main.yml
Normal 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"
|
23
roles/firefox/tasks/ppa.yml
Normal file
23
roles/firefox/tasks/ppa.yml
Normal 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
|
12
roles/firefox/tasks/upstream.yml
Normal file
12
roles/firefox/tasks/upstream.yml
Normal 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
|
@ -36,13 +36,6 @@
|
|||||||
pkg:
|
pkg:
|
||||||
- git
|
- git
|
||||||
|
|
||||||
- name: install browser
|
|
||||||
become: yes
|
|
||||||
apt:
|
|
||||||
update_cache: yes
|
|
||||||
pkg:
|
|
||||||
- firefox
|
|
||||||
|
|
||||||
- name: install gui apps
|
- name: install gui apps
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
|
Loading…
Reference in New Issue
Block a user