Skip to content

Instantly share code, notes, and snippets.

@ricbra
Created November 5, 2014 19:52
Show Gist options
  • Save ricbra/01f312345da3a426d171 to your computer and use it in GitHub Desktop.
Save ricbra/01f312345da3a426d171 to your computer and use it in GitHub Desktop.
Ansible playbook for Selenium headless on Debian Wheezy
---
- name: Instal Selenium
tasks:
- apt_repository: repo="deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" state=present
- apt_key: id="C1289A29" keyserver=keyserver.ubuntu.com state=present
- apt: name=iceweasel state=absent
- apt: name={{ item }} state=present update_cache=yes
with_items:
- firefox-mozilla-build
- openjdk-7-jre-headless
- xvfb
- file: name=/opt/selenium state=directory mode=0755
- get_url: url="http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar" dest=/opt/selenium/selenium.jar
- copy: src=selenium dest=/etc/init.d/selenium mode=0755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment