Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
f5ea5ed2
Commit
f5ea5ed2
authored
Dec 16, 2016
by
George Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lock Firefox version at OS level
parent
252e3d58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
playbooks/roles/browsers/defaults/main.yml
+4
-1
playbooks/roles/browsers/tasks/main.yml
+11
-2
No files found.
playbooks/roles/browsers/defaults/main.yml
View file @
f5ea5ed2
browser_deb_pkgs
:
-
dbus-x11
-
firefox
=45.0.2+build1-0ubuntu1
-
firefox
-
google-chrome-stable
-
libcurl3
-
libgconf2-4
...
...
@@ -9,6 +9,9 @@ browser_deb_pkgs:
-
xdg-utils
-
xvfb
# Firefox
firefox_version
:
version 45.*
# Chrome and ChromeDriver
chrome_repo
:
"
deb
[arch=amd64]
http://dl.google.com/linux/chrome/deb/
stable
main"
chromedriver_version
:
2.25
...
...
playbooks/roles/browsers/tasks/main.yml
View file @
f5ea5ed2
...
...
@@ -10,10 +10,19 @@
apt_repository
:
repo
:
"
{{
chrome_repo
}}"
state
:
present
-
name
:
lock Firefox version
copy
:
dest
:
/etc/apt/preferences.d/firefox-pinned-version
content
:
|
Package: firefox
Pin: {{ firefox_version }}
Pin-Priority: 1001
-
name
:
install system packages
apt
:
pkg={{','.join(browser_deb_pkgs)}}
state=present update_cache=yes
apt
:
name
:
"
{{
item
}}"
update_cache
:
yes
with_items
:
"
{{
browser_deb_pkgs
}}"
-
name
:
download ChromeDriver
get_url
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment