I am adding a contrib module to a project and I would like the module enabling to happen automatically on deployment. My deployment script pulls the code and runs a config update via drush config-import. What would the YML be to enable the module in the codebase on config update?
To enable a module, you just need a line in
core.extension.yml. However, you also need all the configuration the module provides. You could copy that over yourself from the config install and optional folder.
But the usual workflow is that at you enable the module manually at some point, using drush or the UI, then optionall customize the configuration and then export the config and deploy that.