22 lines
625 B
YAML
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 }}"
|