fix: skip gh-dash is gh-dash alread exists
This commit is contained in:
parent
ec3765ce5c
commit
da9f5c19f3
1 changed files with 6 additions and 2 deletions
|
@ -4,8 +4,6 @@
|
|||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
args:
|
||||
creates: "{{ lookup('ansible.builtin.env', 'HOME') }}/.oh-my-zsh"
|
||||
- name: Install gh CLI extensions (gh-dash)
|
||||
command: gh extension install dlvhdr/gh-dash
|
||||
- name: Add zsh managed block
|
||||
blockinfile:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc"
|
||||
|
@ -16,6 +14,12 @@
|
|||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/starship.toml"
|
||||
marker: "# Marc's env managed block - {mark}"
|
||||
block: "{{ lookup('ansible.builtin.file', 'files/starship.toml') }}"
|
||||
- name: Check if gh-dash is installed
|
||||
shell: gh extension list
|
||||
register: gh_ext_list
|
||||
- name: Install gh CLI extensions (gh-dash)
|
||||
command: gh extension install dlvhdr/gh-dash
|
||||
when: gh_ext_list.stdout.find('gh dash') == -1
|
||||
- name: Ensure gh-dash config directory exists
|
||||
file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/gh-dash"
|
||||
|
|
Loading…
Reference in a new issue