Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

umbertix's avatar

Ansible deployment

Hi,

I've been trying to get an ansible playbook to work for all my coming projects in laravel. I usually use Composer, gulp and/or bower, because of that I would like to automate the process of generating the assets on the fly.

So far I've come across with some alternative option such as having all my files compiled and commited and just deploy it as raw files using basic strategies (a.k.a forge, or basic ansible). I would prefered though to actually build it on the go.

So going back to the questions:

Am I trying to do it more complicated that necessary? (a.k.a commit fully compiled project, with assets, etc.) Has anyone been able to create an ansible playbook for laravel provision? Has anyone been able to create an ansible playbook for laravel deploy? (migration, composer, gulp, bower)

I'm a complete noob on ansible and I'm trully strugling with even the most basic tasks but I've managed to get a provision playbook that seems good enough. Also I have found a playbook for deployment that looks really promissing but is lacking some bits and bobs that I hope I'll be able to fix but if someone has encoutered on a similar position in the past maybe I can skip the endless hours of try and error.

Thanks all and sorry for the brain dump ;)

0 likes
2 replies

Please or to participate in this conversation.