Skip to content

Commit 5a2914f

Browse files
committed
Merge pull request #4 from thom8/firefox
Use boolean type for selenium_install_firefox.
2 parents 7fa6781 + 6d64d2f commit 5a2914f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

defaults/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# defaults file for selenium
33
selenium_install_dir: /opt
44
selenium_version: 2.46.0
5-
selenium_install_firefox: true
5+
selenium_install_firefox: yes

tasks/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
apt: name={{item}}
1919
with_items:
2020
- firefox
21-
when: ansible_os_family == 'Debian' and selenium_install_firefox == 'true'
21+
when: ansible_os_family == 'Debian' and selenium_install_firefox
2222

2323
- name: Install browser Xvfb
2424
yum: name={{item}}
@@ -30,7 +30,7 @@
3030
yum: name={{item}}
3131
with_items:
3232
- firefox
33-
when: ansible_os_family == 'RedHat' and selenium_install_firefox == 'true'
33+
when: ansible_os_family == 'RedHat' and selenium_install_firefox
3434

3535

3636
- name: install

0 commit comments

Comments
 (0)