Giter Club home page Giter Club logo

Comments (3)

JBarrskog avatar JBarrskog commented on July 24, 2024 4

I stumbled upon another problem. Upon solving that error, I realised that my problem here is due to mas not being on the$PATH. The path to mas is /opt/homebrew/bin on arm64. I solved this by adding the two lines regarding environment as below:

      name: ansible-collection-mac/roles/mas
      when: mas_installed_apps or mas_installed_app_ids
      tags: ['mas']
      environment:
        PATH: /opt/homebrew/bin:/usr/local/bin:{{ ansible_facts.env.PATH }}

from ansible-collection-mac.

JBarrskog avatar JBarrskog commented on July 24, 2024

These are the lines that are depreciated in 12:

- name: Get MAS account status
command: mas account
register: mas_account_result
failed_when: mas_account_result.rc > 1
check_mode: false
changed_when: false
- name: Sign in to MAS when email and password are provided.
command: 'mas signin "{{ mas_email }}" "{{ mas_password }}"'
register: mas_signin_result
when:
- mas_account_result.rc == 1
- mas_email | bool
- mas_password | bool
- not mas_signin_dialog
- name: Sign in to MAS when email is provided, and complete password and 2FA using dialog.
command: 'mas signin "{{ mas_email }}" "{{ mas_password }}" --dialog'
register: mas_signin_result
when:
- mas_signin_dialog
- mas_account_result.rc == 1
- mas_email | bool

from ansible-collection-mac.

JBarrskog avatar JBarrskog commented on July 24, 2024

And this is the error I receive:

fatal: [10.42.0.202]: FAILED! => changed=false
cmd: mas account
failed_when_result: true
invocation:
module_args:
_raw_params: mas account
_uses_shell: false
argv: null
chdir: null
creates: null
executable: null
removes: null
stdin: null
stdin_add_newline: true
strip_empty_ends: true
warn: false
msg: '[Errno 2] No such file or directory: b''mas'''
rc: 2
stderr: ''
stderr_lines:
stdout: ''
stdout_lines:

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.