{"id":15198846,"url":"https://github.com/seleniumhq/ansible-selenium","last_synced_at":"2025-10-02T14:32:03.294Z","repository":{"id":65989518,"uuid":"47982343","full_name":"SeleniumHQ/ansible-selenium","owner":"SeleniumHQ","description":"Module for managing a grid / nodes using Ansible","archived":true,"fork":false,"pushed_at":"2019-11-19T20:21:31.000Z","size":37,"stargazers_count":66,"open_issues_count":1,"forks_count":43,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-09-28T01:42:38.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/SeleniumHQ/selenium/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeleniumHQ.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-12-14T15:09:39.000Z","updated_at":"2024-09-07T03:24:49.000Z","dependencies_parsed_at":"2023-05-29T01:30:07.486Z","dependency_job_id":null,"html_url":"https://github.com/SeleniumHQ/ansible-selenium","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeleniumHQ%2Fansible-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeleniumHQ%2Fansible-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeleniumHQ%2Fansible-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeleniumHQ%2Fansible-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeleniumHQ","download_url":"https://codeload.github.com/SeleniumHQ/ansible-selenium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875712,"owners_count":16554705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-28T01:42:44.794Z","updated_at":"2025-10-02T14:31:58.014Z","avatar_url":"https://github.com/SeleniumHQ.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Selenium module for Ansible\n===\n\nGet it! `ansible-galaxy install SeleniumHQ.selenium`\n[![star this repo](http://githubbadges.com/star.svg?user=seleniumhq\u0026repo=ansible-selenium\u0026style=default)](https://github.com/seleniumhq/ansible-selenium)\n[![fork this repo](http://githubbadges.com/fork.svg?user=seleniumhq\u0026repo=ansible-selenium\u0026style=default)](https://github.com/seleniumhq/ansible-selenium/fork)\n\n\nUse It\n===\n\nAfter using ansible galaxy to install the module, take the `library/selenium` file, and put it where relevant for your use.\n\nInclude it in your playbook/roles:\n\n```yaml\n- name: Start a standalone server\n  selenium:\n    role: standalone\n    state: running\n\n- name: Start a standalone server (specific selenium version)\n  selenium:\n    version: 2.53.1 \n    role: standalone\n    state: running\n    \n- name: Start a basic grid that listens on port 4444\n  selenium:\n    role: hub\n    state: running\n\n- name: Start a grid that runs on port 4445\n  selenium:\n    role: hub\n    state: running\n    args:\n      port: 4445\n\n- name: Start the grid with greater memory\n  selenium:\n    role: hub\n    state: running\n    javaargs:\n      - Xmx1024M\n      - Xmy1024M\n\n- name: Start a basic node that connects locally\n  selenium:\n    role: node\n    state: running\n    args:\n      hubUrl: http://0.0.0.0:4444\n\n- name: Restart a running node that was listening on a previous port\n  selenium:\n    role: node\n    state: restarted\n    args:\n      hubUrl: http://0.0.0.0:4445\n\n- name: Start a node that uses a JSON config and has a logfile\n  roles:\n    - name: output the config file\n      template: src=config.json.j2 dest=config.json\n\n    - name: start the node\n      selenium:\n        role: node\n        state: running\n        logfile: node.log\n        args:\n          nodeConfig: config.json\n\n- name: Stop the running selenium standalone server\n  selenium:\n    state: stopped\n```\n\n\nDevelop\n===\n\n*(The following instructions are for those using Vagrant)*\n\nBefore running tests:\n\n```sh\nalias test-module=/home/vagrant/ansible/hacking/test-module\n```\n\nTo test the module manually, you can run:\n\n```sh\ncd library/\ntest-module -m ./selenium -a \"role=hub state=running\"\n```\n\nTo run all tests:\n\n```sh\ncd tests/\nansible-playbook -i localhost, test.yml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseleniumhq%2Fansible-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseleniumhq%2Fansible-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseleniumhq%2Fansible-selenium/lists"}