skeletony007 / ansible-roles

Ansible roles to install all the programs
0 stars 0 forks source link

Error installing cmake with ansible community.general.homebrew module #1

Closed skeletony007 closed 2 months ago

skeletony007 commented 7 months ago

Error message

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the `--cask` flag."}

To reproduce:

Include the cmake role in a playbook, for example:

ansible-playbook <(printf '%s' '---
- hosts: localhost
  roles:
    - role: cmake
')
skeletony007 commented 2 months ago

This seems to have resolved itself. Upstream https://github.com/ansible-collections/community.general (or Homebrew itself) has fixed this issue.

skeletony007 commented 2 months ago

I have reverted the temporary fix (commit: 06cd050b1bceda6c61e447d8d88da7a664b30c92) without error. I will mark this as closed.

Anyone with this issue should ensure they are running the latest version of Ansible and Homebrew.