robertdebock.cargo

Ansible Role Cargo

This role installs Cargo on your system.

GitHub GitLab Downloads Version
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

State of Used Roles

These roles help prepare the system. You can use different methods to prepare your system.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.buildtools Build Status GitHub Build Status GitLab
robertdebock.epel Build Status GitHub Build Status GitLab

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: dependencies

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

Apache-2.0.

Author Information

robertdebock

Consider sponsoring me.

Informazioni sul progetto

Install cargo on your system.

Installa
ansible-galaxy install robertdebock.cargo
Licenza
apache-2.0
Download
23.3k
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.