Brew

Error in using homebrew module in ansible

When I call the homebrew modules for three hosts including the localhost, one host reports error. mbpr15:~ cychong$ ansible-playbook install_brew_ack.yaml --verbose No config file found; using defaults PLAY [all] ************************************************************************************************** TASK [Gathering Facts] ************************************************************************************** ok: [localhost] ok: [mini2] ok: [mini1] TASK [install ack in homebrew] ****************************************************************************** ok: [localhost] => {"changed": false, "failed": false, "msg": "Package already installed: ack"} ok: [mini1] => {"changed": false, "failed": false, "msg": "Package already installed: ack"} fatal: [mini2]: FAILED!

brew install python

Just for the record as some environments are mentioned mbpr15:working cychong$ brew install python ==> Installing dependencies for python: readline, sqlite, gdbm, openssl ==> Installing python dependency: readline ==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.3_1.high_sierra.bottle.tar.gz ######################################################################## 100.0% ==> Pouring readline-7.0.3_1.high_sierra.bottle.tar.gz ==> Caveats This formula is keg-only, which means it was not symlinked into /usr/local, because macOS provides the BSD libedit library, which shadows libreadline. In order to prevent conflicts when programs look for libreadline we are defaulting this GNU Readline installation to keg-only.