update ohmyposh
This commit is contained in:
@@ -39,10 +39,10 @@
|
|||||||
name: "{{ regular_user }}"
|
name: "{{ regular_user }}"
|
||||||
shell: /usr/bin/zsh
|
shell: /usr/bin/zsh
|
||||||
|
|
||||||
- name: Install OhMyPosh
|
# - name: Install OhMyPosh
|
||||||
ansible.builtin.command: curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
|
# ansible.builtin.command: curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
|
||||||
register: result
|
# register: result
|
||||||
failed_when: result.rc not in [0, 1]
|
# failed_when: result.rc not in [0, 1]
|
||||||
|
|
||||||
- name: Create fonts directory
|
- name: Create fonts directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@@ -60,3 +60,9 @@
|
|||||||
mode: "0755"
|
mode: "0755"
|
||||||
owner: "{{ regular_user }}"
|
owner: "{{ regular_user }}"
|
||||||
|
|
||||||
|
- name: Install Oh My Posh
|
||||||
|
ansible.builtin.shell: curl -s https://ohmyposh.dev/install.sh | bash -s
|
||||||
|
args:
|
||||||
|
creates: ~/bin/oh-my-posh # Prevents rerunning if already installed
|
||||||
|
become: false # Set to true if you want to install system-wide (adjust path accordingly)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user