mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-27 17:58:44 +00:00
init, dotfiles and install basic roles
This commit is contained in:
commit
46bdf4dda0
21 changed files with 283 additions and 0 deletions
25
roles/installs/tasks/javascript.yml
Normal file
25
roles/installs/tasks/javascript.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- name: Install nodejs
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- nodejs
|
||||
- curl
|
||||
state: latest
|
||||
|
||||
- name: Curl is required for bun
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- curl
|
||||
state: latest
|
||||
|
||||
- name: Install bun
|
||||
ansible.builtin.shell:
|
||||
cmd: npm install -g bun
|
||||
|
||||
- name: Get programs list to check fish presence
|
||||
ansible.builtin.package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Update fish path
|
||||
ansible.builtin.shell:
|
||||
cmd: echo 'fish_add_path {{ ansible_env.HOME }}/.bun/bin'
|
||||
when: "'fish' in ansible_facts.packages"
|
||||
Loading…
Add table
Add a link
Reference in a new issue