Make has_offline_migrations output predictable

Since we parse neutron-db-manage has_offline_migrations for specific
phrase in the output, we need to ensure that locale is correct.
As in case users locale is passed to the server (with SSH), this will
cause task failure.

Change-Id: Iec7f1314a2e4fa4256d9b24d3ea927bd5479e7a1
This commit is contained in:
Dmitriy Rabotyagov 2020-08-17 16:05:36 +03:00 committed by Dmitriy Rabotyagov (noonedeadpunk)
parent 289e844d29
commit 124dc76919

View File

@ -30,6 +30,8 @@
- name: Check for available offline migrations
command: "{{ neutron_bin }}/neutron-db-manage has_offline_migrations"
environment:
LANGUAGE: en_US.UTF-8
become: yes
become_user: "{{ neutron_system_user_name }}"
when: