I am trying to install JQ on mac using this Playbook.
Homebrew has been installed in the target machine manually.
- name: install jq using homebrew
homebrew:
name: jq
state: present
when I run this, I am facing below error
fatal: [X.X.X.X]: FAILED! => {"changed": false, "msg": "Failed to find required executable brew in paths: /Users/xxxx/Documents/ansible/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin"}
Can anyone help me with this?
/usr/local/binin your PATH to usebrewor anything it installs. - Mark Setchellbrew install jqyou will likely need your PATH to contain/usr/local/binAnd if you subsequently want to usejq, you will also need it in your PATH. Soexport PATH=/usr/local/bin:$PATH- Mark Setchell