diff --git a/README.md b/README.md index 826bddb..89eaeba 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ This role assumes a working virtual host (that handles `wordpress_url`). * `wordpress_installs.{n}.dbpass`: [required]: Database password (**make sure to change**) * `wordpress_installs.{n}.dbhost`: [default: `localhost`, optional]: Database host * `wordpress_installs.{n}.path`: [required]: Install directory for wordpress +* `wordpress_installs.{n}.locale`: [default: `en_US`, optional]: Language of the downloaded Wordpress * `wordpress_installs.{n}.owner`: [default: `www-data`]: The name of the user that should own the install * `wordpress_installs.{n}.group`: [default: `owner`, `www-data`]: The name of the group that should own the install * `wordpress_installs.{n}.url`: [required]: Wordpress url diff --git a/tasks/core.yml b/tasks/core.yml index 55914e5..a4328d8 100644 --- a/tasks/core.yml +++ b/tasks/core.yml @@ -10,7 +10,7 @@ - wordpress-core-is-downloaded - name: core | download - command: "wp-cli --allow-root --no-color --path='{{ item.item.path }}' core download" + command: "wp-cli --allow-root --no-color --path='{{ item.item.path }}' --locale='{{ item.item.locale | default('en_US') }}' core download" with_items: check_download.results when: item.rc != 0 tags: