Commit f5ea5ed2 by George Song

Lock Firefox version at OS level

parent 252e3d58
browser_deb_pkgs: browser_deb_pkgs:
- dbus-x11 - dbus-x11
- firefox=45.0.2+build1-0ubuntu1 - firefox
- google-chrome-stable - google-chrome-stable
- libcurl3 - libcurl3
- libgconf2-4 - libgconf2-4
...@@ -9,6 +9,9 @@ browser_deb_pkgs: ...@@ -9,6 +9,9 @@ browser_deb_pkgs:
- xdg-utils - xdg-utils
- xvfb - xvfb
# Firefox
firefox_version: version 45.*
# Chrome and ChromeDriver # Chrome and ChromeDriver
chrome_repo: "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" chrome_repo: "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
chromedriver_version: 2.25 chromedriver_version: 2.25
......
...@@ -10,10 +10,19 @@ ...@@ -10,10 +10,19 @@
apt_repository: apt_repository:
repo: "{{ chrome_repo }}" repo: "{{ chrome_repo }}"
state: present 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 - name: install system packages
apt: pkg={{','.join(browser_deb_pkgs)}} apt:
state=present update_cache=yes name: "{{ item }}"
update_cache: yes
with_items: "{{ browser_deb_pkgs }}"
- name: download ChromeDriver - name: download ChromeDriver
get_url: get_url:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment