Giter Club home page Giter Club logo

Comments (4)

basictheprogram avatar basictheprogram commented on July 24, 2024

Changed my shell to base

chsh -s /bin/bash

Updated my PATH in ~/.bash_profle

PATH="${HOME}/bin:/opt/homebrew/bin:${PATH}"
export PATH

And

$ which brew
/opt/homebrew/bin/brew

But Ansible still throws an error

TASK [geerlingguy.mac.homebrew : Install configured cask applications.] ********
failed: [macmini] (item=powershell) => {"ansible_loop_var": "item", "changed": false, "item": "powershell", "msg": "Failed to find required executable brew in paths: /usr/bin:/bin:/usr/sbin:/sbin"}

It doesn't look like homebrew_cask honors the users PATH

from ansible-collection-mac.

basictheprogram avatar basictheprogram commented on July 24, 2024

The docs say path defaults to "/usr/local/bin:/opt/homebrew/bin"

In main.yml I changed homebrew_cask to community.general.homebrew_cask

    - name: Install configured cask applications.
      community.general.homebrew_cask:
        name: "{{ item.name | default(item) }}"
        state: present
        install_options: "{{ item.install_options | default('appdir=' + homebrew_cask_appdir) }}"
        accept_external_apps: "{{ homebrew_cask_accept_external_apps }}"
        sudo_password: "{{ ansible_become_password | default(omit) }}"
      loop: "{{ homebrew_cask_apps }}"
      notify:
        - Clear homebrew cache

And this seems to fix my problem.

I think the problem is my version of ansible (ansible 2.9.16.post0) and it's using the /src/ansible/lib/ansible/modules/packaging/os/homebrew_cask.py and not the community.general.homebrew_cask collection.

from ansible-collection-mac.

stale avatar stale commented on July 24, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

from ansible-collection-mac.

stale avatar stale commented on July 24, 2024

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

from ansible-collection-mac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.