'Unable to install Homebrew in mac using ansible
Trying to install Home brew on mac by ansible , but getting the error. Please help me to fix the issue.
- name: Install Homebrew on mac
hosts: mac_vms
tasks:
- name: Check if Homebrew is already installed
stat:
path: /usr/local/bin/brew
register: b
- name: Execute the script
shell: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/.../master/install.sh)"
delay: 3
when: not b.stat.exists
Getting below error
enter code here
"stdout": "Warning: Running in non-interactive mode because `stdin` is not a TTY.\n==> Checking for `sudo` access (which may request your password)...",
"stdout_lines": [
"Warning: Running in non-interactive mode because `stdin` is not a TTY.",
"==> Checking for `sudo` access (which may request your password)..."
Installation command :
ansible-playbook -i hosts.yaml installHomeBrew.yml -vvvv -b -K
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
