diff --git a/README.md b/README.md index 5207db0..bd0c580 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ This role assumes a working virtual host (that handles `wordpress_url`). * `wordpress_installs.{n}.dbprefix`: [default: `wp_`, optional]: Prefix for database tables * `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}.version`: [default: `6.2`, optional]: Version 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 b472eb0..66cbf16 100644 --- a/tasks/core.yml +++ b/tasks/core.yml @@ -15,6 +15,7 @@ wp-cli core download --allow-root --no-color --path='{{ item.item.path }}' --locale='{{ item.item.locale | default('en_US') }}' + --version='{{ item.item.version| default('6.2') }}' with_items: "{{ _check_download.results | default([]) }}" when: item.rc != 0 tags: