Skip to content

Question about using role as non-root user #76

@CardanoUmbrella

Description

@CardanoUmbrella

Hello, Thanks for making this ansible role!
My goal is to use it to provision a server with nvm, node, and npm usable by my non-root user who has sudo privileges.

I have a task that looks like this (cu.nodesjs is my fork name of your repo):

- name: Include cu.nodejs role
  become: yes
  become_user: "{{admin_user}}"
  include_role:
    name: cu.nodejs

After running the above successfully I have access to nvm when logged into my server as the admin_user (not root).
However I don't have access to node or npm. Is it possible to access these as non-root user?

Thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions