fubarhouse / ansible-role-rust Goto Github PK
View Code? Open in Web Editor NEWAnsible role for installing the Rust programming language
License: MIT License
Ansible role for installing the Rust programming language
License: MIT License
I've run across issues with the main.yml and setup.yml files where tasks fail because the conditional or attribute value source uses the ".stdout" function call. removing the ".stdout" fixes the issues and the task executes complete as intended.
Expected Outcome: Tasks complete normally
Actual Outcome: Tasks fail
Maybe I'm missing something obvious, but I'm trying to install rust for ssh user which ansible is using to connect to the host and it fails when doing apt cache update:
TASK [fubarhouse.rust : Rust | Update apt cache] *******************************
fatal: [mayastor-dev]: FAILED! => {"changed": false, "msg": "Failed to lock apt for exclusive operation"}
If I run the role with "become: true" (root), then rust is installed for the root user and not for the one I want.
btw isn't the apt-cache update step completely useless when rust is installed using rustup script and not by the packaging system?
It would be very helpful if current HEAD were tagged, so that it could be used via Ansible Galaxy.
Hey. Thanks for this useful role. cargo
has --root
option that specifies the install location of the package to be installed. I'm kindly asking if you could support the option in the role.
"use --force to override" now replaces the "Add --force to overwrite" in tasks/cargo.yml
(may depends of the cargo version)
Fix in task/cargo.yml
:
failed_when:
- ("use --force to override" not in item.stderr) and
("Finished" not in item.stderr)
Received the following while running the role:
TASK [fubarhouse.rust : Rust | Install] *****************************************************************
[WARNING]: Consider using the get_url or uri module rather than running 'curl'. If you need to use
command because get_url or uri is insufficient you can add 'warn: false' to this command task or set
'command_warnings=False' in ansible.cfg to get rid of this message.
This isn't a blocking warning, but seems like something that should be fixed.
Planning to do a block of work for this module, I just want this to be consolidated into one so that people know it's happening. I just need to find a block of time to do this, as time is scarce these days...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.