{"id":22845504,"url":"https://github.com/idealista/goreplay-role","last_synced_at":"2025-06-23T19:34:30.819Z","repository":{"id":50161089,"uuid":"76563127","full_name":"idealista/goreplay-role","owner":"idealista","description":"Ansible role to install GoReplay tool","archived":false,"fork":false,"pushed_at":"2023-08-07T04:26:52.000Z","size":122,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-28T16:57:45.399Z","etag":null,"topics":["ansible","debian","gor","goreplay"],"latest_commit_sha":null,"homepage":"","language":"YAML","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/idealista.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-15T13:44:24.000Z","updated_at":"2023-03-27T09:34:33.000Z","dependencies_parsed_at":"2025-04-28T16:57:01.293Z","dependency_job_id":null,"html_url":"https://github.com/idealista/goreplay-role","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/idealista/goreplay-role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fgoreplay-role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fgoreplay-role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fgoreplay-role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fgoreplay-role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idealista","download_url":"https://codeload.github.com/idealista/goreplay-role/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fgoreplay-role/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261543461,"owners_count":23174747,"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":["ansible","debian","gor","goreplay"],"created_at":"2024-12-13T03:17:28.042Z","updated_at":"2025-06-23T19:34:30.774Z","avatar_url":"https://github.com/idealista.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](logo.gif)\n\n[![Build Status](https://travis-ci.org/idealista/goreplay-role.png)](https://travis-ci.org/idealista/goreplay-role)\n[![Ansible Galaxy](https://img.shields.io/badge/galaxy-idealista.goreplay-role-B62682.svg)](https://galaxy.ansible.com/idealista/goreplay-role)\n\n# GoReplay Ansible role\n\nThis ansible role installs and configure GoReplay. Supports debian stretch and buster.\n\n- [Getting Started](#getting-started)\n\t- [Prerequisities](#prerequisities)\n\t- [Installing](#installing)\n- [Usage](#usage)\n- [Testing](#testing)\n- [Built With](#built-with)\n- [Versioning](#versioning)\n- [Authors](#authors)\n- [License](#license)\n- [Contributing](#contributing)\n- [Acknowledgments](#acknowledgments)\n\n## Getting Started\n\nThese instructions will get you a copy of the role for your ansible playbook. Once launched, it will install the [GoReplay](https://goreplay.org/) utility as a service in your Debian system.\n\n### Prerequisities\n\nAnsible 5.2.X version installed.\nInventory destination should be a Debian environment.\n\nFor testing purposes, [Molecule](https://molecule.readthedocs.io/) with [Vagrant](https://www.vagrantup.com/) as driver (with [landrush](https://github.com/vagrant-landrush/landrush) plugin) and [VirtualBox](https://www.virtualbox.org/) as provider.\n\n### Installing\n\nCreate or add to your roles dependency file (e.g requirements.yml):\n\n```\n- src: idealista.goreplay_role\n  version: 2.0.0\n  name: goreplay\n```\n\nInstall the role with ansible-galaxy command:\n\n```\nansible-galaxy install -p roles -r requirements.yml -f\n```\n\n\n## Usage\n\nTo enable GoReplay and replicate traffic on another host override the following variables\n\n```\ngoreplay_input: '\"--input-raw :80\"'\ngoreplay_output: '\"--output-http http://test01:80\"'\n```\n\nTo save it to a file\n\n```\ngoreplay_input: '\"--input-raw :80\"'\ngoreplay_output: \"--output-file={{ goreplay_output_dir }}/requests.gor\"\n```\n\n!Stop GoReplay to retrieve the file, otherwise you could lost last requests https://github.com/buger/gor/wiki/Saving-and-Replaying-from-file#buffered-file-output\n\n```\ngoreplay_service_state: stopped\n```\n\nOr stop the service manually\n\n```\nssh user@host\nsudo service goreplay stop\n```\n\nOr start the service with a low flush interval\n\n```\ngoreplay_input: '\"--input-raw :80\"'\ngoreplay_output: \"--output-file={{ goreplay_output_dir }}/requests.gor\"\ngoreplay_options:\n  - output-file-flush-interval 0m1s\n```\n\n## Testing\n\n```\nmolecule test\n```\n\n## Built With\n\n![Ansible](https://img.shields.io/badge/ansible-2.4.0.0-green.svg)\n\n## Versioning\n\nFor the versions available, see the [tags on this repository](https://github.com/idealista/gor-role/tags).\n\nAdditionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.\n\n## Authors\n\n* **Idealista** - *Work with* - [idealista](https://github.com/idealista)\n\nSee also the list of [contributors](https://github.com/idealista/gor-role/contributors) who participated in this project.\n\n## License\n\n![Apache 2.0 License](https://img.shields.io/hexpm/l/plug.svg)\n\nThis project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Acknowledgments\n\n* Leonid Bugaev, @buger, https://leonsbox.com - for such an excellent tool ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealista%2Fgoreplay-role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidealista%2Fgoreplay-role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealista%2Fgoreplay-role/lists"}