Skip to content

mas role not working on sequoia 15.4 #116

@lo-yuta

Description

@lo-yuta

Hello,

i'm having an issue with the mas role on sequoia 15.4, as my playbook runs and tries to execute the following task:

- name: Install mas and apps
  ansible.builtin.import_role:
    name: geerlingguy.mac.mas                                                                                                                                         
    tasks_from: main.yml

it breaks with the following error:

fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/opt/homebrew/bin/mas", "list"], "delta": "0:00:00.022339", "end": "2025-08-27 22:34:31.462032", "msg": "non-zero return code", "rc": 1, "start": "2025-08-27 22:34:31.439693", "stderr": "Error: No installed apps found\n\nIf this is unexpected, the following command line should fix it by\n(re)creating the Spotlight index (which might take some time):\n\nsudo mdutil -Eai on", "stderr_lines": ["Error: No installed apps found", "", "If this is unexpected, the following command line should fix it by", "(re)creating the Spotlight index (which might take some time):", "", "sudo mdutil -Eai on"], "stdout": "", "stdout_lines": []}

it is breaking as the command mas list returns error:

Error: No installed apps found

If this is unexpected, the following command line should fix it by
(re)creating the Spotlight index (which might take some time):

sudo mdutil -Eai on

the version of mas installed is 2.3.0, perhaps is just this version that is bugged? is anyone else facing this issue? can we consider putting a register and a failed_when in the mas ansible role main.yml file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions