Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution via SSH with MAS failed - local execution OK #154

Closed
Din0112 opened this issue Jun 29, 2022 · 4 comments
Closed

Execution via SSH with MAS failed - local execution OK #154

Din0112 opened this issue Jun 29, 2022 · 4 comments
Labels

Comments

@Din0112
Copy link

Din0112 commented Jun 29, 2022

SSH:

PLAY [studio] ****************************************************************************************************************************************************************************************

TASK [geerlingguy.mac.mas : Ensure MAS is installed.] ************************************************************************************************************************************************
[WARNING]: Platform darwin on host xxx.xxx.xxx.xxx is using the discovered Python interpreter at /usr/bin/python3, but future installation of another Python interpreter could change the meaning of
that path. See https://docs.ansible.com/ansible-core/2.12/reference_appendices/interpreter_discovery.html for more information.
ok: [xxx.xxx.xxx.xxx]

TASK [geerlingguy.mac.mas : Get MAS account status]
**************************************************************************************************************************************************
**fatal: [xxx.xxx.xxx.xxx]: FAILED! => changed=false 
  cmd: mas account
  failed_when_result: true
  msg: '[Errno 2] No such file or directory: b''mas'''
  rc: 2
  stderr: ''
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>**

PLAY RECAP *******************************************************************************************************************************************************************************************
xxx.xxx.xxx.xxx              : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

LOCAL:

PLAY [localhost] *************************************************************************************************************************************************************************************

TASK [geerlingguy.mac.mas : Ensure MAS is installed.] ************************************************************************************************************************************************
ok: [localhost]

TASK [geerlingguy.mac.mas : Get MAS account status] **************************************************************************************************************************************************
ok: [localhost]

TASK [geerlingguy.mac.mas : Sign in to MAS when email and password are provided.] ********************************************************************************************************************
skipping: [localhost]

TASK [geerlingguy.mac.mas : Sign in to MAS when email is provided, and complete password and 2FA using dialog.] **************************************************************************************
skipping: [localhost]

TASK [geerlingguy.mac.mas : List installed MAS apps.] ************************************************************************************************************************************************
ok: [localhost]

Environment:

MAS Version 1.8.6
MacOS: 12.4

@stale
Copy link

stale bot commented Oct 16, 2022

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.

@stale stale bot added the stale label Oct 16, 2022
@stale
Copy link

stale bot commented Nov 23, 2022

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.

@stale stale bot closed this as completed Nov 23, 2022
@financelurker
Copy link

I had the same issue... With adding a environment.PATH declaration to the mas-role it worked for me:

    - role: geerlingguy.mac.mas
      environment:
        PATH: '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin'
      when: mas_installed_apps or mas_installed_app_ids
      tags: ['mas']

@Din0112
Copy link
Author

Din0112 commented Jan 11, 2023

@financelurker Thanks for your support, works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants