Giter Club home page Giter Club logo

Comments (6)

toby-griffiths avatar toby-griffiths commented on July 4, 2024

I found this old post on your blog, however I don't have as /etc/profile.d/ directory. I think I'd need to add an include in the /etc/profile files to pick this up, right?

Sorry for all the questions. I just so I can get my PR done the right way.

from ansible-collection-mac.

toby-griffiths avatar toby-griffiths commented on July 4, 2024

So I've checked my /etc/paths file, on the target machine, and that includes the path, so I'm not where ansible is picking up it's $PATH from, and I can't find any reference articles on how to update this path when connecting to a mac remotely using ansible.

from ansible-collection-mac.

BadDoggie avatar BadDoggie commented on July 4, 2024

On my new BigSur, I find that mas is installed in /opt/homebrew/bin.

As a temporary workaround you can update the file roles/mas/defaults/main.yml, and add the path, so for example lines 5-6 look like this now:

- name: Get MAS account status
  command: /opt/homebrew/bin/mas account

This needs to be done for actions 2 through 6.

YMMV - Worked OK for me...

from ansible-collection-mac.

toby-griffiths avatar toby-griffiths commented on July 4, 2024

@BadDoggie Thanks. Yeah I'd done that to get it working, but wondered what's the best way to resolve this for everyone.

from ansible-collection-mac.

stale avatar stale commented on July 4, 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 4, 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.