Merge "Provide fallback variable if sudo is not used"
This commit is contained in:
commit
3977dd2cd5
@ -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 }}"
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user