Initial commit erasing history
This commit is contained in:
parent
e04f86fd9a
commit
7d8751ffe8
712 changed files with 7348 additions and 0 deletions
4
roles/firefox/tasks/main.yml
Normal file
4
roles/firefox/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
22
roles/firefox/tasks/main_lin.yml
Normal file
22
roles/firefox/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
- name: Add Firefox not-a-snap repository
|
||||
block:
|
||||
- name: Pin Firefox PPA package priority
|
||||
template:
|
||||
src: mozilla-firefox-apt-preferences
|
||||
dest: /etc/apt/preferences.d/mozilla-firefox
|
||||
- name: Enable Firefox unattended upgrades
|
||||
template:
|
||||
src: mozilla-firefox-unattended-upgrades
|
||||
dest: /etc/apt/apt.conf.d/51unattended-upgrades-firefox
|
||||
- name: Add Firefox PPA
|
||||
apt_repository:
|
||||
repo: ppa:mozillateam/ppa
|
||||
state: present
|
||||
update_cache: True
|
||||
validate_certs: False
|
||||
|
||||
- name: Install Firefox
|
||||
apt:
|
||||
name:
|
||||
- firefox
|
||||
state: latest
|
26
roles/firefox/tasks/main_win.yml
Normal file
26
roles/firefox/tasks/main_win.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
- name: Install Firefox
|
||||
win_chocolatey:
|
||||
name: firefox
|
||||
- name: Create Firefox policy directory
|
||||
win_file:
|
||||
dest: C:\Program Files\Mozilla Firefox\distribution
|
||||
state: directory
|
||||
- name: Set Firefox policies
|
||||
copy:
|
||||
dest: C:\Program Files\Mozilla Firefox\distribution\policies.json
|
||||
content: |
|
||||
{
|
||||
"policies": {
|
||||
"DisableAppUpdate": true,
|
||||
"DisableSystemAddonUpdate": true,
|
||||
"DisableTelemetry": true,
|
||||
"UserMessaging": {
|
||||
"WhatsNew": false,
|
||||
"ExtensionRecommendations": false,
|
||||
"FeatureRecommendations": false,
|
||||
"UrlbarInterventions": false,
|
||||
"SkipOnboarding": true,
|
||||
"MoreFromMozilla": false
|
||||
}
|
||||
}
|
||||
}
|
3
roles/firefox/templates/mozilla-firefox-apt-preferences
Normal file
3
roles/firefox/templates/mozilla-firefox-apt-preferences
Normal file
|
@ -0,0 +1,3 @@
|
|||
Package: *
|
||||
Pin: release o=LP-PPA-mozillateam
|
||||
Pin-Priority: 1001
|
|
@ -0,0 +1 @@
|
|||
Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";
|
Loading…
Add table
Add a link
Reference in a new issue