viasite-ansible / ansible-role-zsh

Setup antigen with oh-my-zsh, powerlevel10k theme, fzf, autosuggestions, syntax-highlighting
https://habrahabr.ru/post/323496/
MIT License
346 stars 84 forks source link

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

Closed Bussmeyer closed 4 months ago

Bussmeyer commented 7 months ago

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 commented 5 months ago

Hello, tried to fix it.

Bussmeyer commented 5 months ago

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 commented 5 months ago

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

popstas commented 4 months ago

Hello, @Bussmeyer, i've made some changes for macos:

Can you try it?

Bussmeyer commented 4 months ago

Nice. It just works for me now :-)