Nginx 301 rewrites role for trellis

Hey All

I was in need of being able to add 301 redirects to trellis deployd server, but I couldnt find a quick way of doing it (short of adding them manually to the server), so I wrote a role for this, hope it come in useful to at least some of you out there.
Install details are in the readme.


Thanks for sharing this.

Although I think using Trellis’ built-in Nginx includes feature could achieve the same thing without a custom role.

Wow, not sure how I missed this. Still, it gave me some more experience writing ansible roles so at least I still got something out of it.

1 Like