wp cli
as ansible task can also be used for installed WordPress core/plugin/theme language packs:
You can find examples for using wp cli
with trellis (ansible).
Also related:
https://github.com/wp-cli/wp-cli/issues/1319
https://developer.wordpress.org/cli/commands/option/