Skip to content

Commit

Permalink
Merge pull request #41 from Oefenweb/add-locale-support
Browse files Browse the repository at this point in the history
Add locale support
  • Loading branch information
tersmitten committed Mar 18, 2016
2 parents 52fca49 + 21530f9 commit 65c2faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tasks/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 65c2faf

Please sign in to comment.