This ansible playbook install and setup most of softwares and utilities for my DevOps environment.
You can simply run the install.sh script which includes all commands for the installation prerequisites.
Note: If some Homebrew commands fail, you might need to agree to XCode's license or fix some other Brew issue. Run brew doctor to see if this is the case.