Add hugo playbook after testing it in combination with the nodejs changes.
This commit is contained in:
@@ -152,6 +152,7 @@
|
|||||||
- include_tasks: tasks/workstation/linux/software/vscodium.yml
|
- include_tasks: tasks/workstation/linux/software/vscodium.yml
|
||||||
- include_tasks: tasks/workstation/linux/software/vpn.yml
|
- include_tasks: tasks/workstation/linux/software/vpn.yml
|
||||||
- include_tasks: tasks/workstation/linux/software/nodejs.yml
|
- include_tasks: tasks/workstation/linux/software/nodejs.yml
|
||||||
|
- include_tasks: tasks/workstation/linux/software/hugo.yml
|
||||||
- include_tasks: tasks/workstation/linux/software/brave.yml
|
- include_tasks: tasks/workstation/linux/software/brave.yml
|
||||||
when: ansible_pkg_mgr in ("apt", "dnf", "zypper") and not mobile
|
when: ansible_pkg_mgr in ("apt", "dnf", "zypper") and not mobile
|
||||||
when: ansible_system == "Linux"
|
when: ansible_system == "Linux"
|
||||||
|
|||||||
@@ -2,29 +2,55 @@
|
|||||||
# 2026-09-11 Hyperling
|
# 2026-09-11 Hyperling
|
||||||
# Move all Hugo development needs to a specific place.
|
# Move all Hugo development needs to a specific place.
|
||||||
|
|
||||||
- name: Workstation | Hugo
|
- name: Workstation | Linux | Software | Hugo
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Workstation | Hugo | Facts (pacman)
|
- name: Workstation | Linux | Software | Hugo | pacman
|
||||||
|
block:
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | Hugo | pacman | Facts
|
||||||
set_fact:
|
set_fact:
|
||||||
- sass_old: ruby-sass
|
sass_old: ruby-sass
|
||||||
- sass_current: dart-sass
|
sass_current: dart-sass
|
||||||
when: ansible_pkg_mgr == "pacman"
|
|
||||||
|
|
||||||
#- name: Workstation | Hugo | Facts (apt)
|
- name: Workstation | Linux | Software | Hugo | pacman | Remove Old
|
||||||
# set_fact:
|
|
||||||
# - sass_old: htop
|
|
||||||
# - sass_current: htop
|
|
||||||
# when: ansible_pkg_mgr == "apt"
|
|
||||||
|
|
||||||
- name: Workstation | Hugo | Remove
|
|
||||||
package:
|
package:
|
||||||
|
name:
|
||||||
- "{{ sass_old }}"
|
- "{{ sass_old }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Workstation | Hugo | Install
|
- name: Workstation | Linux | Software | Hugo | pacman | Install New
|
||||||
package:
|
package:
|
||||||
|
name:
|
||||||
- "{{ sass_current }}"
|
- "{{ sass_current }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
when: code is true
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
|
# This must exist after nodejs.yml so that NPM is installed.
|
||||||
|
- name: Workstation | Linux | Software | Hugo | npm
|
||||||
|
block:
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | Hugo | npm | Facts
|
||||||
|
set_fact:
|
||||||
|
sass_old: node-sass
|
||||||
|
sass_current: sass
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | Hugo | npm | Gather
|
||||||
|
shell: npm prefix -g
|
||||||
|
register: npm_bin_dir # Provides /usr/local/ on Devuan, /usr/ on Artix.
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | Hugo | npm | Remove Old
|
||||||
|
shell: "npm remove -g {{ sass_old }}"
|
||||||
|
args:
|
||||||
|
creates: "{{ npm_bin_dir.stdout }}/bin/sass"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | Hugo | npm | Install New
|
||||||
|
shell: "npm install -g {{ sass_current }}"
|
||||||
|
args:
|
||||||
|
creates: "{{ npm_bin_dir.stdout }}/bin/sass"
|
||||||
|
|
||||||
|
when: ansible_pkg_mgr == "apt"
|
||||||
|
|
||||||
|
when: coding is true
|
||||||
|
|||||||
@@ -7,29 +7,41 @@
|
|||||||
- name: Workstation | Software | NodeJS
|
- name: Workstation | Software | NodeJS
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Workstation | Software | NodeJS | Facts
|
- name: Workstation | Software | NodeJS | apt
|
||||||
|
block:
|
||||||
|
|
||||||
|
- name: Workstation | Software | NodeJS | apt | Facts
|
||||||
set_fact:
|
set_fact:
|
||||||
node_version: node_24.x
|
node_version: node_24.x
|
||||||
|
|
||||||
- name: Workstation | Software | NodeJS | Old | Remove
|
- name: Workstation | Software | NodeJS | apt | Old | Remove
|
||||||
package:
|
package:
|
||||||
name: npm
|
name: npm
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Workstation | Software | NodeJS | extrepo | Install
|
- name: Workstation | Software | NodeJS | apt | extrepo | Install
|
||||||
package:
|
package:
|
||||||
name: extrepo
|
name: extrepo
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Workstation | Software | NodeJS | extrepo | Enable {{ node_version }}
|
- name: Workstation | Software | NodeJS | apt | extrepo | Enable
|
||||||
shell: "extrepo enable {{ node_version }}"
|
shell: "extrepo enable {{ node_version }}"
|
||||||
|
|
||||||
- name: Workstation | Software | NodeJS | Install
|
- name: Workstation | Software | NodeJS | apt | Install
|
||||||
package:
|
package:
|
||||||
name: nodejs
|
name: nodejs
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
when: ansible_pkg_mgr == "apt"
|
when: ansible_pkg_mgr == "apt"
|
||||||
and coding == true
|
|
||||||
|
- name: Workstation | Software | NodeJS | All Others | Install
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- nodejs
|
||||||
|
- npm
|
||||||
|
state: present
|
||||||
|
when: ansible_pkg_mgr != "apt"
|
||||||
|
|
||||||
|
when: coding == true
|
||||||
|
|||||||
Reference in New Issue
Block a user