config/roles/dev/tasks/js.yml

29 lines
663 B
YAML
Raw Normal View History

2025-08-03 12:33:33 +03:00
- name: Install nodejs
ansible.builtin.dnf5:
name:
- nodejs
- curl
state: latest
- name: Curl is required for bun
ansible.builtin.dnf5:
name:
- curl
state: latest
2025-08-09 11:47:58 +03:00
# TODO: use curl script ??
2025-08-03 12:33:33 +03:00
- name: Install bun
2025-08-09 11:47:58 +03:00
ansible.builtin.command:
cmd: npm install -g bun
changed_when: true # change is checked inside npm
2025-08-03 12:33:33 +03:00
- name: Get programs list to check fish presence
ansible.builtin.package_facts:
manager: auto
2025-08-09 11:47:58 +03:00
- name: Update fish path for bun
ansible.builtin.shell: fish_add_path {{ ansible_env.HOME }}/.bun/bin
args:
executable: /usr/bin/fish
changed_when: true # change is checked inside fish_add_path