Skip to content

Commit

Permalink
Use boolean type for selenium_install_firefox.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom Toogood committed Dec 21, 2015
1 parent 7fa6781 commit 6d64d2f
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 6d64d2f

Please sign in to comment.