Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.37 KB

README.md

File metadata and controls

70 lines (49 loc) · 1.37 KB

selenium-hub

This role deploys Selenium Server and runs it in the hub mode using a system service.

Requirements

The only limitation is to have exactly one host in the inventory group the selenium-hub role is applied on.

For example, this inventory part is ok:

[selenium-hub]
hub01.example.com

but this will fail:

[selenium-hub]
hub01.example.com
hub02.example.com

as well as section with no hosts:

[selenium-hub]

Role Variables

See variables of the common role. No other variables are defined in this role.

Dependencies

Example Playbook

Example inventory:

[selenium-hub]
hub.example.com

Running a role with our own values:

- hosts: selenium-hub
  roles:
    - {
        role: selenium-hub,
        config_dir: /etc/my-selenium,
        selenium_dir: /var/lib/selenium,
        selenium_version: 3.4.0,
        hub_port: 4455
      }

Note: As these variables are used in both roles, selenium-hub and selenium-node, it is a good practice to define them in one place, so both roles see the same values.

For example, a group_vars/all variable file:

---
config_dir: /etc/my-selenium
selenium_dir: /var/lib/selenium
selenium_version: 3.4.0
hub_port: 4455