The fail2ban service blocks IPs after 6 failed connections, but the default attempts to whitelist your machine’s IP by adding it to the fail2ban_ignoreip list. Trellis attempts a dig DNS lookup to automatically detect and add your IP.
I’m not aware of this failing for anyone yet, but the feature has only been in Trellis for a little over 5 weeks.
What is the output from running this on your local control machine dig +short myip.opendns.com @resolver1.opendns.com
What version of Ansible are you using? ansible --version
What is your OS?
I hope you’ll respond to the questions above to help us debug this, but if you need to just get your playbook running, and if you’re leaving sshd_permit_root_login: "yes", you could temporarily remove the ip lookup:
Edit: Also, I’ve noticed sometimes people have mysterious Failed to template errors that go away after a vagrant destroy -f && vagrant up. In fact, that’s true for many vagrant vm troubles seem to occur from re-running the playbook (without destroying) after it failed previously.
getting a similar issue when trying to provision a digital ocean box
TASK: [fail2ban | ensure fail2ban is configured] ******************************
fatal: [XXX.XXX.XXX.XXX] => Failed to template 6u+WpX{%>!ViHY,Tk&zgb|[email protected]`–TD+Fud0>&/NJ~n >pm5,eY&-X-E[FqXS: template error while templating string: tag name expected
not sure where that hash looking thing is coming from…
EDIT: I am running this from my OSX machine, not a vagrant box. ansible 1.9.3
EDIT2: this seems to have been from one of the wordpress salts… not sure why, but generating all new ones fixed my issue. apologies for the thread jack attempt…
I followed all the instructions from the roots-example-project, and everything seamed to be working untill I ran into the same exact problem as @cenkce.
For now I just want to get the development deal working on my computer. Working on Windows 8.1