Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a umask option to community.general.npm #8006

Open
1 task done
bnogaro opened this issue Feb 22, 2024 · 2 comments
Open
1 task done

Add a umask option to community.general.npm #8006

bnogaro opened this issue Feb 22, 2024 · 2 comments
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)

Comments

@bnogaro
Copy link

bnogaro commented Feb 22, 2024

Summary

When globally installing npm packages (global: true), if the root user has a restrictive umask (e.g. 027), pacakges are not readable or executable.
It would be nice to have a umask option, in the same fashion as the pip ansible module, for these specific tasks.

Issue Type

Feature Idea

Component Name

npm

Additional Information

The option would simply has to be

- name: Globally install npm-groovy-lint
  community.general.npm:
    name: npm-groovy-lint
    global: true
    umask: "022"

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module plugins plugin (any type) labels Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

2 participants