Replies: 2 comments 6 replies
-
When you use |
Beta Was this translation helpful? Give feedback.
6 replies
-
Is this expected behavior, or should I create an issue? @ssbarnea |
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
-
We use
molecule
with Docker to test a collection used in a production environment, and wanted to update theconverge.yml
playbook to reflect a recent change in the way we apply the roles to our hosts.We used to apply the roles like this:
We have changed the playbook to use separate plays for the different roles, and I'm not able to do the same in the
converge
stage in molecule:The problem is that the
collection.configure
role uses a variable that is set incollection.install
, and the variable is undefined inmolecule
when the playbook starts the second play.I have tried using
ansible.builtin.import_role
andansible.builtin.inclued_role
with the optionpublic: true
. The result is the same; the variable is not accessible in the Configure play.Ideally, I would like to use the same playbook statements in
molecule
as we use withansible-playbook
in our real environment.Is there a way to achieve this? Or is there a workaround?
Beta Was this translation helpful? Give feedback.
All reactions