Merge "Provide fallback variable if sudo is not used"

This commit is contained in:
Jenkins 2017-04-05 16:14:01 +00:00 committed by Gerrit Code Review
commit 3977dd2cd5
2 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,7 @@
- bifrost-keystone-install
- bifrost-ironic-install
- role: bifrost-keystone-client-config
user: "{{ ansible_env.SUDO_USER }}"
user: "{{ ansible_env.SUDO_USER | default(ansible_user_id) }}"
clouds:
bifrost:
config_username: "{{ ironic.keystone.default_username }}"

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Corrects an issue where execution of ``install.yaml`` would return
an error indicating ``SUDO_USER`` was not found, by providing a fallback
to the ``ansible_user_id`` variable.