Best practices to separate provision and operation tasks

Hi,

Is there a way (best practice) to separate playbook to provision tasks ( setup only) and operation tasks ( backup db, restore db, restart app,…)

One example is

site.yml ( for provisioning)
rolling-update.yml ( for deploy,…)
dbtasks.yml ( for other tasks,…)
apptasks.yml ( for handle app)

What a proposed directory layout for it?

Thanks,
Pilgrim

Hi Le Van, this is typically what tags are used for. The other alternative is to simply create separate playbooks for them, though there is not really any best practice guideline for that. It’s mostly a matter of personal preference.

Thanks!