# Structuring roles for a PHP app with separate FFmpeg worker hosts

**URL:** <https://forum.ansible.com/t/structuring-roles-for-a-php-app-with-separate-ffmpeg-worker-hosts/46536>\
**Category:** Get Help\
**Created:** [October 25, 2026, 4:29pm UTC](https://forum.ansible.com/t/structuring-roles-for-a-php-app-with-separate-ffmpeg-worker-hosts/46536 "2026-10-25T16:29:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colorfulcms](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@colorfulcms](https://forum.ansible.com/u/colorfulcms)\
**Post date:** [October 25, 2026, 4:29pm UTC](https://forum.ansible.com/t/structuring-roles-for-a-php-app-with-separate-ffmpeg-worker-hosts/46536/1 "2026-10-25T16:29:49Z")

</div>

Hi everyone, I’m provisioning a PHP video platform with Ansible: web nodes (Nginx + PHP-FPM), a database host, and several FFmpeg transcoding workers. Right now everything lives in one big playbook. Would you split this into one role per service and use group\_vars for each host type, or use a collection? Also curious how people handle rolling restarts of PHP-FPM without dropping uploads. Thanks!
