test-install-keystone: Do not hardcode path for keystone-manage binary

When using the keystone distribution packages, the keystone binaries are
no longer installed in a virtual environment so we shouldn't hardcode
the paths to these binaries. It's preferred to set the PATH env variable
with all the possible paths and just call the binaries directly.

Change-Id: I1f5431bacc308b007b992a8b41bd4bd19635d551
Implements: blueprint openstack-distribution-packages
This commit is contained in:
Markos Chandras 2018-04-09 14:57:34 +01:00
parent 877f30ceb8
commit 81f832aef2
1 changed files with 3 additions and 1 deletions

View File

@ -73,9 +73,11 @@
any_errors_fatal: true
tasks:
- name: Perform a Keystone DB sync contract
command: "/openstack/venvs/keystone-{{ keystone_venv_tag }}/bin/keystone-manage db_sync --contract"
command: keystone-manage db_sync --contract
become: yes
become_user: keystone
environment:
PATH: "/openstack/venvs/keystone-{{ keystone_venv_tag }}/bin:{{ ansible_env.PATH }}"
tags:
- skip_ansible_lint
vars_files: