WIP roles for easy selfhosting based on ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
663 B

- name: "Check whether cargo is installed"
path: "/usr/local/bin/cargo"
register: cargo
- name: "Setup cargo and rustc"
include_tasks: "setup.yml"
when: not cargo.stat.exists
- name: "Create directory for rust sources"
path: "/opt/compiler/rust"
state: directory
owner: compiler
group: compiler
- name: "Setup rust crate from another role"
include: "packages.yml"
when: rust_packages is defined
- name: "Setup rust crates from config"
include: "packages.yml"
rust_packages: "{{ packages|default({})|attr('rust')|default([]) }}"
when: rust_packages is not defined and packages|default({})|attr('rust')