Install Dexterity for plonetheme.business_casual via Ansible playbook

I wanted to install the business casual theme on a server that was built via the Plone Ansible playbook. The upload went fine, but preview yielded this error: https://docs.plone.org/manage/troubleshooting/exceptions.html#attributeerror-relationlist-object-has-no-attribute-source

To resolve the issue, I installed Dexterity. In roles/plone.plone_server/templates/buildout.cfg.j2 add plone.app.dexterity [grok] as shown:

eggs =
    Plone
    Pillow
{% if instance_config.plone_version >= '5.0' %}
{% if instance_config.plone_version | version_compare('5.0.6', '<=') %}
    Products.PloneHotfix20160830
{% endif %}
{% if instance_config.plone_version | version_compare('5.0.5', '<=') %}
    Products.PloneHotfix20160419
{% endif %}
    plone.app.dexterity [grok]
{% endif %}

Then run the playbook again. All is well.

Leaving this here for someone else who might stumble across it. I could file an issue somewhere, too, just not sure where.

You could also add it to the plone_additional_eggs variable, according to the docs.

Ah, that's cleaner. Thanks.