From 137c2884afc01bc4ed11120efdba0a2fd0bb38e6 Mon Sep 17 00:00:00 2001 From: Mahdi Ardekanian Date: Mon, 30 Sep 2024 11:58:27 -0400 Subject: [PATCH] unixPB: improves `common > macos` task by using module for brew It replaces `command` with `homebrew_cask` module for Update Casks task in common > macos. Signed-off-by: mahdi@ibm.com --- .../roles/Common/tasks/MacOSX.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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