buluma.cargo

Ansible Role cargo

This role installs Cargo on your system.

GitHub Version Issues Pull Requests Downloads
github Version Issues PullRequests Ansible Role

Example Playbook

This example is from molecule/default/converge.yml. It is tested with every change made to the code.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: buluma.cargo

The system needs preparation. In CI, this is done with molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: buluma.bootstrap
    - role: buluma.buildtools

For a more detailed explanation and examples, see this link.

Role Variables

Default variable values are in defaults/main.yml:

---
# Default settings for cargo

# Directory where Cargo will be installed.
cargo_prefix: /usr/local

# Directory to store the downloaded installer.
cargo_tmp: /root

Requirements

State of Used Roles

These roles are used to set up your system. You can choose other methods for preparation.

Requirement GitHub Version
buluma.bootstrap Ansible Molecule Version
buluma.buildtools Ansible Molecule Version
buluma.epel Ansible Molecule Version

Context

This role works with many other roles. For more information, check out the documentation.

Here’s a visual of the related roles:

dependencies

Compatibility

This role has been tested with the following container images:

Container Tags
Alpine all
EL 8
Debian all
Fedora all
opensuse all
Ubuntu jammy, lunar, noble

You need at least Ansible version 2.12 to use this. Tests have been done for:

  • The previous version.
  • The current version.
  • The development version.

If you encounter problems, please report them on GitHub.

Changelog

For the Role History.

License

This role is licensed under Apache-2.0.

Author Information

Created by Shadow Walker.

Informazioni sul progetto

Install cargo on your system.

Installa
ansible-galaxy install buluma.cargo
Licenza
apache-2.0
Download
7.4k
Proprietario
DevOps Engineer