diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml index ef2aa43b5e..9cf5536e03 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml @@ -108,9 +108,9 @@ # Skipping linting as no situation where this can't run (lint error 301) - name: Update Casks - become: yes - become_user: "{{ ansible_user }}" - command: "{{ homebrew_path }}/brew cu -y" + homebrew_cask: + upgrade_all: yes + path: "{{ homebrew_path }}/brew" tags: - brew_cu - skip_ansible_lint