use ansible_host hostvar in inventory #2552
Unanswered
IlyesSemlali
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Type
Molecule and Ansible details
Molecule installation method : pip
Ansible installation method : pip
Desired Behavior
When using the docker driver for instance, the generated inventory looks like this :
When using the --parallel option, the instance name bares an UUID which leads to errors when fetching hostvars based on this name.
It could be easier to use parallelism with molecule if the inventory took advantage of the ansible_host variable like in the following inventory:
Beta Was this translation helpful? Give feedback.
All reactions