diff --git a/defaults/main.yml b/defaults/main.yml index 4ccca384..8205cbaa 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -323,6 +323,11 @@ horizon_optional_pip_packages: [] # but should otherwise be left as False. horizon_translations_update: False +# This variable is used to define the version of the project +# (horizon) to pull from Zanata. Default value is master, +# other possibly values are stable/pike, stable/queens... +horizon_translations_project_version: master + # This variable is used by the repo_build process to determine # which host group to check for members of before building the # pip packages required by this role. The value is picked up diff --git a/tasks/horizon_translations_update.yml b/tasks/horizon_translations_update.yml index 0af424b2..6c4940b9 100644 --- a/tasks/horizon_translations_update.yml +++ b/tasks/horizon_translations_update.yml @@ -14,7 +14,7 @@ # limitations under the License. - name: Perform a Horizon Zanata Pull Catalog - command: "{{ horizon_bin }}/horizon-manage.py pull_catalog" + command: "{{ horizon_bin }}/horizon-manage.py pull_catalog -v {{ horizon_translations_project_version | replace('/', '-') }}" args: chdir: "{{ horizon_lib_dir }}/" changed_when: false