Project

General

Profile

Actions

Bug #25944

closed

Variables are ignored if the role does not live in all ansible directories

Added by Marek Hulán almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Imagine we have role dirs set to /etc/ansible/roles:/root/.ansible/roles (two directories). Our code does this

variables[role_name] = VariablesExtractor.extract_variables("#{path}/#{role_name}")

if the role does not exist in second directory, we replace variables found in first with empty array.

Actions

Also available in: Atom PDF