Skip to content

Commit

Permalink
Merge pull request #4 from thom8/firefox
Browse files Browse the repository at this point in the history
Use boolean type for selenium_install_firefox.
  • Loading branch information
arknoll committed Feb 29, 2016
2 parents 7fa6781 + 6d64d2f commit 5a2914f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# defaults file for selenium
selenium_install_dir: /opt
selenium_version: 2.46.0
selenium_install_firefox: true
selenium_install_firefox: yes
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
apt: name={{item}}
with_items:
- firefox
when: ansible_os_family == 'Debian' and selenium_install_firefox == 'true'
when: ansible_os_family == 'Debian' and selenium_install_firefox

- name: Install browser Xvfb
yum: name={{item}}
Expand All @@ -30,7 +30,7 @@
yum: name={{item}}
with_items:
- firefox
when: ansible_os_family == 'RedHat' and selenium_install_firefox == 'true'
when: ansible_os_family == 'RedHat' and selenium_install_firefox


- name: install
Expand Down

0 comments on commit 5a2914f

Please sign in to comment.