In one my plays, a task executes a script that parses a file and exracts 
some credentials and saves them to a yaml file. If I try to access the 
variables in the file using vars_files it doesn't work as I guess ansible 
tries to figure out the values of the variables even before any of the 
tasks are executed. Since the tasks that sets up the yaml file isn't 
executed, ansible complains that the variable file isn't present. Even if 
try a task that writes the credentials to /etc/ansible/facts.d in json and 
try accessing them, ansible complains that the the ansible_local variable 
isn't present. Any workaround for this?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c8ea34ac-6da7-4470-8c8a-ff9ef18f2e56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to