Skip to content

Commit

Permalink
Making 'Ensure Homebrew is installed' more itempotent.
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Stange <[email protected]>
  • Loading branch information
gekitsuu and Bjorn248 committed May 10, 2024
1 parent 7181428 commit 76fa14f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion roles/homebrew/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@
tags:
- directories
- check_homebrew_directory_exists


Check failure on line 57 in roles/homebrew/tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

57:1 [trailing-spaces] trailing spaces
- name: Register contents of homebrew_install_path
shell: ls -A
args:
chdir: "{{ homebrew_install_path }}"
register: homebrew_dir

# Clone Homebrew.
- name: Ensure Homebrew is installed.
Expand All @@ -68,6 +73,7 @@
become_user: "{{ homebrew_user }}"
tags:
- check_homebrew_installed
when: homebrew_dir["stdout_lines"] | length == 0

# Adjust Homebrew permissions.
- name: Ensure proper permissions and ownership on homebrew_brew_bin_path dirs.
Expand Down

0 comments on commit 76fa14f

Please sign in to comment.