Skip to content

Commit

Permalink
Omb update (#5)
Browse files Browse the repository at this point in the history
* testing if omb is installed if so skip this task

* testing if omb is installed if so skip this task

* fixed duplicate dict key on install omb
  • Loading branch information
0lzi authored Nov 9, 2023
1 parent 97cb323 commit 7ebe643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions tasks/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
mode: '0644'
tags: aliases

# Fix to stop duplicate `custom` entries each time it runs
- name: Update OMB .bashrc for custom aliases
shell: sed -i '/ general/ s/$/ \n\ custom/' /home/{{ user }}/.bashrc
when: not omb_installed.stat.exists
register: omb_result
changed_when: omb_result.rc != 0
ignore_errors: true

- name: Copy .gitconfig
ansible.builtin.copy:
Expand Down
4 changes: 2 additions & 2 deletions tasks/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
become: false
when: not omb_installed.stat.exists
register: omb_result
changed_when: omh_result.rc != 0
changed_when: omb_result.rc != 0
ignore_errors: true
tags: bash
become: false


- name: Add sign key for Microsoft
block:
Expand Down

0 comments on commit 7ebe643

Please sign in to comment.