I am having an issue with referencing a variable in var_files module, and cant for the life of me figure it out. I am generating some vars in a playbook, and using setfact on them [basically awk shell commands to strip arts of the ansible control node hostname]
If i debug the var before hand I can see it, but the play returns an undefined variable:
Playbook:
I had tried that previous, and it is the same issue.
Ok, it is unclear what you are trying to accomplish.
try import_vars
Can you run your playbook with -vvv then post the output? It’s probably going to be a lot, so use https://pastebin.com/ .
Check if beforehand for any sensitive information.
Will do. I am actually not in the office until Monday so will send it then.