Coder Social home page Coder Social logo

ansible-role-rust's Introduction

Hi there, I'm Karl ๐Ÿ‘‹

๐ŸŽ– Certificates

https://www.credly.com/badges/98ebfa74-184d-4215-98cf-f6d0b501f8fa/public_url https://www.credly.com/badges/20de1080-7c5c-4beb-adc9-ba50d9822c2f/public_url

:octocat: Github Statistics

fubarhouse fubarhouse

ansible-role-rust's People

Contributors

fubarhouse avatar saulrh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-role-rust's Issues

.stdout usage in task files breaks execution

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

running rust role as a non-root user fails

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?

Tagging current HEAD

It would be very helpful if current HEAD were tagged, so that it could be used via Ansible Galaxy.

Cargo: add --root option support

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.

overwrite message has changed for cargo

"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)

[WARNING]: Consider using the get_url or uri module rather than running 'curl'.

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.

Work plan

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...

  • #21
  • #22
  • #23
  • Review of platform support
  • General CI maintenance
  • Update default values (versions etc)

Condition error

When I run your role with:

  roles:
    - role: fubarhouse.rust
      vars:
        rust_version: 1.37
        shell_profiles:
          - .zprofile
        cargo_items:
          - bat
          - lsd
          - pug
          - racer
          - rustfmt-nighty
          - sass-rs
          - spruce
      become: true

I get (screenshot taken from virtual, sorry):
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.