Skip to content

Commit

Permalink
Fix Node installation on newer Fedora releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Nov 12, 2023
1 parent 606770f commit afdeba6
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions roles/install/tasks/autokick.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
---
# use dnf modules
# TODO DNF modules used to be the way, but apparently not anymore
#name: "@nodejs:{{ nodejs_version }}/common"
- name: Install Node.js
dnf:
name: "@nodejs:{{ nodejs_version }}/common"
package:
name: nodejs
state: latest
when: ansible_os_family == 'RedHat'

- name: Install Node.js
apt:
name: "nodejs"
state: latest
when: ansible_os_family == 'Debian'

- include_role:
name: noobient.thirdparty
Expand Down

0 comments on commit afdeba6

Please sign in to comment.