robertdebock.cargo
Ansible Role Cargo
This role installs Cargo on your system.
| GitHub | GitLab | Downloads | Version |
|---|---|---|---|
Example Playbook
This example comes from molecule/default/converge.yml and is tested whenever there is a push, pull request, or release.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: robertdebock.cargo
Prepare your machine first. In CI, this is done using molecule/default/prepare.yml:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: robertdebock.bootstrap
- role: robertdebock.buildtools
For a complete guide on using these roles, check a full explanation and example.
Role Variables
The default values for the variables are in defaults/main.yml:
---
# default values for cargo
# Where to install Cargo.
cargo_prefix: /usr/local
# Where to place the downloaded installer.
cargo_tmp: /root
Requirements
- pip packages in requirements.txt.
State of Used Roles
These roles help prepare the system. You can use different methods to prepare your system.
| Requirement | GitHub | GitLab |
|---|---|---|
| robertdebock.bootstrap | ||
| robertdebock.buildtools | ||
| robertdebock.epel |
Context
This role is part of many compatible roles. You can find more details in the documentation of these roles.
Here is an overview of related roles:

Compatibility
This role has been tested on the following container images:
| Container | Tags |
|---|---|
| Alpine | all |
| Amazon | Candidate |
| EL | 9 |
| Debian | all |
| Fedora | all |
| Ubuntu | all |
Ansible version 2.12 or newer is needed. Tests were conducted for:
- The previous version.
- The current version.
- The development version.
Please report any issues on GitHub.
License
Author Information
Consider sponsoring me.
ansible-galaxy install robertdebock.cargo