Hello,
I still haven’t gotten my head around the new deploy scripts. I used the old Capistrano config to deploy my previous project and that took some time to learn.
Like the new setup. It looks much cleaner but I’m stuck and hope someone can help med out!
I am not using Ansible to provision the remote server. Is that a problem? I just want to deploy my updated site files on each deploy and do npm/bower install and run gulp to compile the assets.
If I look in group_vars/all it says www_root: /srv/www
that suggests to me that I should overwrite this in the group_vars/staging
if I have a different folder on the remote.
Also looking in roles/deploy/defaults/main.yml
I see a lot of different settings for which files and folders to keep between deploy. Is this the file I should edit?
Suggestions to a good resource where I can learn about Ansible and configs would be appreciated!
When I run ansible-playbook -i hosts/staging server.yml
as step 4 in the README says I get the following problem.
TASK: [fail2ban | ensure fail2ban is configured] ******************************
fatal: [178.79.166.49] => template error while templating string: unexpected ')'
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/stefan/server.retry
178.79.166.49 : ok=7 changed=1 unreachable=1 failed=0
Anyone ran into this?