meffie.robotframework
Ansible Role: Robot Framework
This Ansible role installs the Robot Framework for test automation, and it can also install additional test libraries if needed.
The role uses pip
to install Robot Framework. If pip
is not already installed, it will be added. For RHEL/CentOS users, the EPEL repository will be set up to allow pip
installation.
After you have added this role, you should upload your test files and resources to the server and then run robot
to execute your tests.
Requirements
You need Ansible version 2.10 or higher.
Supported Platforms
- RedHat/CentOS 8
- RedHat/CentOS 7
- Fedora 34
- Fedora 33
- Debian 11
- Debian 10
Role Variables
Here are the available variables with their default values (see defaults/main.yml
):
robotframework_package_name: The name of the Robot Framework package for pip. The default is
robotframework
.robotframework_package_version_spec: A specification to install a specific version of Robot Framework using pip. It is empty by default, meaning the latest version will be installed if Robot Framework is not already installed.
robotframework_external_libraries: A list of additional Robot Framework libraries to install via pip. The default list is empty.
Dependencies
There are no dependencies.
Example Playbook
- hosts: testers
roles:
- robotframework
tasks:
- name: Copy test data
copy:
src: /path/to/tests/on/controller
dest: /path/to/my/test/data/
- name: Run tests
command: robot /path/to/my/test/data
License
MIT
ansible-galaxy install meffie.robotframework