Git Product home page Git Product logo

ansible-rustup's Introduction

hurricanehrndz.rustup

Build Status MIT licensed

Install rust and user defined cargo crates via rustup using https://sh.rustup.rs.

Role Variables

Variable Name Default Value Value Type Description
rustup_user root string Install rustup, and rust toolchain as defined value.
rustup_home_suffix .rustup string Install destination (~/ + suffix)
rustup_cargo_home_suffix .cargo string Install destination (~/ + suffix)
rustup_cargo_crates [fd-find, ripgrep] Array List of crates to install from cargo.
rustup_default_version stable string Toolchain name, such as 'nightly' or '1.8.0'

Example Playbook

- hosts: servers
  roles:
    - role: hurricanehrndz.rustup

License

MIT

Author Information

Carlos Hernandez aka HurricaneHrndz

ansible-rustup's People

Contributors

chasinglogic avatar cunha avatar dependabot[bot] avatar ericraio avatar guenhter avatar hurricanehrndz avatar injectedfusion avatar manojkarthick avatar mzpqnxow avatar paperbenni avatar radupopa2010 avatar sh3rm4n avatar

Stargazers

 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  avatar

ansible-rustup's Issues

Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user

TASK [hurricanehrndz.rustup : Define rustup user home] *************************************************************************************************
ok: [test-bench-bot]

TASK [hurricanehrndz.rustup : Define rustup user shell] ************************************************************************************************
ok: [test-bench-bot]

TASK [hurricanehrndz.rustup : Create temporary install directory] **************************************************************************************
fatal: [test-bench-bot]: FAILED! => {"msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user (rc: 1, err: chmod: invalid mode: 'A+user:gitlab-runner:rx:allow'\nTry 'chmod --help' for more information.\n}). For information on working around this, see https://docs.ansible.com/ansible-core/2.11/user_guide/become.html#becoming-an-unprivileged-user"}

ansible --version
ansible [core 2.11.7] 
  config file = /home/radu/p/parity/devops/ansible.cfg
  configured module search path = ['/home/radu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/radu/.local/lib/python3.8/site-packages/ansible
  ansible collection location = /home/radu/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/radu/.local/bin/ansible
  python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
  jinja version = 3.0.1
  libyaml = True

For Ubuntu 20.04, the fix is
sudo apt-get install acl

Error on arm64 macOS, No file was found when using first_found

Hi! Thanks for creating this role. I'm trying to run the role and I'm getting the following error:

TASK [hurricanehrndz.rustup : Set distro-specific variables] **********************************************************************************************************************
fatal: [127.0.0.1]: FAILED! =>
  msg: No file was found when using first_found.
  • OS version: macOS 12.0.1 21A559 arm64
  • Ansible version:
ansible [core 2.12.1]
  config file = None
  configured module search path = ['/Users/manojkarthick/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/Caskroom/mambaforge/base/envs/dotfiles/lib/python3.10/site-packages/ansible
  ansible collection location = /Users/manojkarthick/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/Caskroom/mambaforge/base/envs/dotfiles/bin/ansible
  python version = 3.10.1 | packaged by conda-forge | (main, Dec 22 2021, 01:39:07) [Clang 11.1.0 ]
  jinja version = 3.0.3
  libyaml = True

Example doesn't work

Using the role in the way you give in the example doesn't work.

This does however:

roles:
    - hurricanehrndz.rustup

Install doesn't work for distros not listed in vars folder (default.yml not found)

I used this role without a problem under Ubuntu but was having problems in OpenSuse Tumbleweed. I noticed this piece of code:

- name: Set distro-specific variables
  include_vars: '{{ item }}'
  with_first_found:
    - '{{ ansible_os_family }}.yml'
    - default.yml

However there's no default.yml. I think vars/main.yml is supposed to be this file. I renamed it and added the standard content (gcc, make, curl) and it worked. So either rename main.yml into default.yml and add some default content, or change the value within "with_first_found".

Thanks for this role. Cheers.

Is the custom shell integration still relevant?

Hi,

as already discussed in last weeks PR: Do you think the shell integration done in this role has advantages over the one which is already done by the rustup installation?
If it has no advantage, do you think it should get removed here to make the role easier?

kind regards

Provide a release

Hi,
Thanks for your Ansible role !
What do you think about providing git tag ?

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.