To use Homebrew task in the Ansible, both Homebrew and Ansible should be installed in the system. That means at least Homebrew and Ansible must be installed using shell script. Following installation and configuration will be done by Ansible, so that the shell script can be use for up-to-date the local environment.
- Shell script
- Install homebrew
- Install ansible using homebrew
- Execute ansible
- specifying /usr/local/bin/ansible to avoid PATH configured following ansible script