Izveden refactor iz taskov v role
This commit is contained in:
parent
747438dedf
commit
a35460a57b
317 changed files with 2761 additions and 50 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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue