Files
ansible_role_package/tasks/helpers/cargo.yml
Matthew Stobbs 3a39c083a8 basic installs working
need to run tests on all the builds alone, should use a container system
2026-03-27 22:04:05 -06:00

22 lines
625 B
YAML

# vim: set filetype=yaml.ansible
#
## Helper: cargo.yml
## Description: Install packages using the cargo command
## Variables: top level 'dict'
## name: package name on cargo
## version: cargo version, omitted if empty
## locked: _bool_, optional. Default false
---
- name: Dump install vars
ansible.builtin.debug:
var: pkg
- name: Install with cargo
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
community.general.cargo:
name: "{{ pkg.name }}"
version: "{{ pkg.version | default(omit) }}"
locked: "{{ pkg.locked | default(false) }}"
path: "{{ install_prefix }}"