The default is broken because lookup from a missing env var returns an empty string. Unless the 2nd parameter 'true' is passed to default, it only defaults undefined variables. An empty string is not undefined, so the default never works. In group_vars/all/all.yml, it doesn't matter that the default never works, because openstack-ansible.rc always sets OSA_CONFIG_DIR. In get-ansible-role-requirements.yml, it makes a difference, because the first time this playbook runs during bootstrap, openstack-ansible.rc will not be loaded yet. This means the default user roles path is always going to be '/user-role-requirements.yml' instead of '/etc/openstack_deploy/user-role-requirements.yml'. Change-Id: Id9e53958daf9494e5baf9cd1e34ed6f83eefa5f4
5.4 KiB
5.4 KiB