Looks like the above issue is that Ansible is not able to authenticate with the server. By default it looks to try and use ssh keys, but I don’t have any passwordless ssh keys set up for Ansible to use so it fails while attempting to connect. The work around it to make sure you have sshpass installed and then specify –ask-pass to the end of the command.
Note: To install sshpass you need to make sure you have Xcode installed along with the Xcode command line tools. You can download Xcode from the app store, and then install the command line tools from Xcode’s Preferences.
Now open up your terminal and run the following commands.