-
Notifications
You must be signed in to change notification settings - Fork 77
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
dev-desktops: Install npm #616
Conversation
- name: Install Node | ||
apt: | ||
name: nodejs | ||
name: | ||
- nodejs | ||
- npm | ||
state: present | ||
update_cache: yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: Install Node | |
apt: | |
name: nodejs | |
name: | |
- nodejs | |
- npm | |
state: present | |
update_cache: yes | |
- name: Install Node | |
apt: | |
name: {{ item }} | |
state: present | |
update_cache: yes | |
with_items: | |
- node | |
- npm |
I think you need to wrap it in a loop (or just make two separate steps)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just using a list works for the main dependency step, so I think it's fine
simpleinfra/ansible/roles/dev-desktop/tasks/dependencies.yml
Lines 11 to 18 in 9332e75
- name: Install packages | |
apt: | |
name: | |
- apt-file # Allows showing the contents of packages which aren't installed | |
- build-essential | |
- clang | |
- cmake | |
- gcc-mingw-w64-x86-64 # Allows running `x check --target x86_64-pc-windows-gnu` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh weird that no one complained yet that we only install Node and npm. 😅
This has been deployed to all dev-desktops. Feel free to give it a try and let me know if you run into any issues... 🙂 |
NPM is used by rustdoc for the rustdoc-gui tests.
I have no way to check if this is correct/works.