Merge "Fix incorrect variables in ansible role scripts"
This commit is contained in:
@@ -70,7 +70,7 @@ fi
|
||||
pip2 install "${ANSIBLE_WORKING_DIR}" || pip install "${ANSIBLE_WORKING_DIR}"
|
||||
|
||||
# Update dependent roles
|
||||
if [ -f "ansible-role-requirements.yml" ];then
|
||||
if [ -f "${ANSIBLE_ROLE_FILE}" ];then
|
||||
# Update or create the roles manifest
|
||||
if [ "${UPDATE_ANSIBLE_REQUIREMENTS}" == "yes" ];then
|
||||
./scripts/os-ansible-role-requirements.py --requirement-file ${ANSIBLE_ROLE_FILE} update
|
||||
|
||||
@@ -253,8 +253,8 @@ def requirements_file(args):
|
||||
)
|
||||
)
|
||||
|
||||
if not os.path.isdir(os.path.dirname(args['requirement_file'])):
|
||||
os.makedirs(os.path.dirname(args['requirement_file']))
|
||||
if not os.path.isdir(os.path.dirname(requirement_file)):
|
||||
os.makedirs(os.path.dirname(requirement_file))
|
||||
|
||||
return requirement_file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user