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

TASK [viasite-ansible.zsh : Install zsh, git, wget, fd-find] failed on Mac 13.6.4 #76

Open
Bussmeyer opened this issue Mar 29, 2024 · 3 comments

Comments

@Bussmeyer
Copy link

Bussmeyer commented Mar 29, 2024

I am on a

Mac Intel on Ventura 13.6.4

My playbook looks like:

---
- name: Configure host
  hosts: all

  roles:
    - role: viasite-ansible.zsh
      tags: ['zsh']

If I run
ansible-playbook main.yml -K --tags="zsh"

I get the following error message:

TASK [viasite-ansible.zsh : Install zsh, git, wget, fd-find] ***********************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error: Running Homebrew as root is extremely dangerous and no longer supported.\nAs Homebrew does not drop privileges on installation you would be giving all\nbuild scripts full access to your system."}

If I change in install.yml to become: no in line 18, the next error pops up.

TASK [viasite-ansible.zsh : Install zsh, git, wget, fd-find] ************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error: No available formula with the name \"fd-find\". Did you mean ffind?"}

fd-find is not available via brew on Mac.

If I change the line 15 in install.yml to - fd everthing works fine. As fd is available via brew.

@popstas
Copy link
Contributor

popstas commented May 26, 2024

Hello, tried to fix it.

@Bussmeyer
Copy link
Author

Hey @popstas, thanks for the fix. I can confirm that it fixes the second error I mentioned. The first one still pops up.

TASK [viasite-ansible.zsh : Install zsh, git, wget, fd-find] *********************************************************************************************************************** fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error: Running Homebrew as root is extremely dangerous and no longer supported.\nAs Homebrew does not drop privileges on installation you would be giving all\nbuild scripts full access to your system."}

@popstas
Copy link
Contributor

popstas commented May 30, 2024

Thank you, I'm going to obtain a MacOS machine in June and investigate how to fix it.

@popstas popstas reopened this May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants