darkwizard242.locust

Ansible Role: locust

This role installs the locust pip package on Debian/Ubuntu systems for load testing.

Requirements

None.

Role Variables

Here are the available variables (found in defaults/main.yml):

Variables List:

locust_debian_pre_reqs:
  - python3
  - python3-pip
locust_debian_pre_reqs_desired_state: present
pip_executable: pip3
pip_upgrade_version: latest
locust_app_debian_package: locust
locust_desired_state: present

Variables table:

Variable Description
locust_debian_pre_reqs These are the necessary packages to install locust on Debian systems. Use python3 since python2.x is no longer supported.
locust_debian_pre_reqs_desired_state The desired state for the necessary applications to have locust on Debian systems.
pip_executable This is the command used to install the pip package for locust.
locust_app_debian_package The name of the locust application package to install on Debian systems.
locust_desired_state The desired state for locust.

Dependencies

None.

Example Playbook

Here’s how to use the role in an Ansible playbook to install locust by default:

- hosts: servers
  roles:
    - darkwizard242.locust

To customize the role for installing the latest version of locust instead of just ensuring it's installed:

- hosts: servers
  roles:
    - darkwizard242.locust
  vars:
    locust_desired_state: latest

To customize the role for removing the locust package:

- hosts: servers
  roles:
    - darkwizard242.locust
  vars:
    locust_desired_state: absent

License

MIT

Author Information

This role was created by Ali Muhammad, a DevOps/CloudOps Engineer who enjoys learning and contributing to the Open Source community.

Informazioni sul progetto

Installs locust using pip3 package for load testing.

Installa
ansible-galaxy install darkwizard242.locust
Licenza
mit
Download
4.2k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!