elliotweiser / ansible-osx-command-line-tools

An Ansible role for installing OS X Command Line Tools
https://galaxy.ansible.com/elliotweiser/osx-command-line-tools/
MIT License
96 stars 42 forks source link

Checking command line tools metadata failing since Apple update #65

Closed tommeier closed 3 years ago

tommeier commented 3 years ago

Hi, looks like the command lines tool check is failing at the moment:

TASK [elliotweiser.osx-command-line-tools : Check for Command Line Tools in Software Update list (MacOS >= 10.15).] ************************************************************
fatal: [a.b.com.au]: FAILED! => {"changed": false, "cmd": "set -o pipefail; softwareupdate -l | grep -B 1 -E 'Command Line Tools' | awk -F'*' '/^\\*/ {print $2}' | sed 's/^ Label: //' | grep -iE '[0-9|.]' | sort | tail -n1\n", "delta": "0:00:06.299439", "end": "2021-04-27 20:44:09.861464", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2021-04-27 20:44:03.562025", "stderr": "No new software available.", "stderr_lines": ["No new software available."], "stdout": "", "stdout_lines": []}

This is on a mac mini, happening on a variety, all recently updated:

ProductName:    Mac OS X
ProductVersion: 10.15.7
BuildVersion:   19H1030

Command now returns an exit status of 1 even though the result is 'No new software available':

image

tommeier commented 3 years ago

Fixed over here: https://github.com/elliotweiser/ansible-osx-command-line-tools/pull/66