hostvars missing ansible_host #4205
Replies: 1 comment
-
Bah, ok - our playbooks use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there - I'm trying to use molecule to test some existing ansible code, using the docker driver to set up a throwaway host in CI.
It seems like when running in molecule, I'm missing some metadata on
hostvars
that usually can be used to access vars across all your hosts. eg I've got this in a template file:that ought to generate a file along the lines of
This seems to run fine in 'normal' ansible, but in molecule I get:
What am I missing? Any suggestions on working around this?
Beta Was this translation helpful? Give feedback.
All reactions