Add hugo playbook after testing it in combination with the nodejs changes.
This commit is contained in:
@@ -7,29 +7,41 @@
|
||||
- name: Workstation | Software | NodeJS
|
||||
block:
|
||||
|
||||
- name: Workstation | Software | NodeJS | Facts
|
||||
set_fact:
|
||||
node_version: node_24.x
|
||||
- name: Workstation | Software | NodeJS | apt
|
||||
block:
|
||||
|
||||
- name: Workstation | Software | NodeJS | Old | Remove
|
||||
package:
|
||||
name: npm
|
||||
state: absent
|
||||
- name: Workstation | Software | NodeJS | apt | Facts
|
||||
set_fact:
|
||||
node_version: node_24.x
|
||||
|
||||
- name: Workstation | Software | NodeJS | extrepo | Install
|
||||
- name: Workstation | Software | NodeJS | apt | Old | Remove
|
||||
package:
|
||||
name: npm
|
||||
state: absent
|
||||
|
||||
- name: Workstation | Software | NodeJS | apt | extrepo | Install
|
||||
package:
|
||||
name: extrepo
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Workstation | Software | NodeJS | apt | extrepo | Enable
|
||||
shell: "extrepo enable {{ node_version }}"
|
||||
|
||||
- name: Workstation | Software | NodeJS | apt | Install
|
||||
package:
|
||||
name: nodejs
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
|
||||
- name: Workstation | Software | NodeJS | All Others | Install
|
||||
package:
|
||||
name: extrepo
|
||||
name:
|
||||
- nodejs
|
||||
- npm
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: ansible_pkg_mgr != "apt"
|
||||
|
||||
- name: Workstation | Software | NodeJS | extrepo | Enable {{ node_version }}
|
||||
shell: "extrepo enable {{ node_version }}"
|
||||
|
||||
- name: Workstation | Software | NodeJS | Install
|
||||
package:
|
||||
name: nodejs
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
and coding == true
|
||||
when: coding == true
|
||||
|
||||
Reference in New Issue
Block a user