2026-06-11 13:50:11 +02:00
|
|
|
---
|
|
|
|
|
- name: Oh-my-posh | Check installed version
|
|
|
|
|
ansible.builtin.command: oh-my-posh --version
|
|
|
|
|
register: dev_env__omp_check
|
|
|
|
|
changed_when: false
|
|
|
|
|
failed_when: false
|
|
|
|
|
|
|
|
|
|
- name: Oh-my-posh | Install pinned binary
|
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
|
url: "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v{{ dev_env__omp_version }}/posh-linux-amd64"
|
|
|
|
|
dest: /usr/local/bin/oh-my-posh
|
|
|
|
|
mode: "0755"
|
|
|
|
|
when: (dev_env__omp_check.stdout | default('') | trim) != dev_env__omp_version
|
|
|
|
|
|
|
|
|
|
- name: Oh-my-posh | Ensure theme directory
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
|
path: /etc/oh-my-posh
|
|
|
|
|
state: directory
|
|
|
|
|
mode: "0755"
|
2026-06-14 19:31:23 +02:00
|
|
|
tags: [config]
|
2026-06-11 13:50:11 +02:00
|
|
|
|
|
|
|
|
- name: Oh-my-posh | Deploy zen.toml theme (system-wide)
|
|
|
|
|
ansible.builtin.copy:
|
|
|
|
|
src: oh-my-posh/zen.toml
|
|
|
|
|
dest: /etc/oh-my-posh/zen.toml
|
|
|
|
|
mode: "0644"
|
2026-06-14 19:31:23 +02:00
|
|
|
tags: [config]
|