Replies: 2 comments
-
You can install dependencies in Reference: https://molecule.readthedocs.io/en/latest/configuration.html#ansible-galaxy |
Beta Was this translation helpful? Give feedback.
-
You can only define what version of roles/collections your role depends on within molecule. Defining the required python and ansible version is something that's on a higher level than molecule so that it can't be handled by molecule. You could use something like pipenv or tox to handle those dependencies, there are numerous examples of how to do that available, e.g. tox-ansible |
Beta Was this translation helpful? Give feedback.
-
I work across several different teams building ansible roles with molecule. One issue we face is people having different versions of collections and python requirements on their local ansible that molecule is using to test. Then when we get to deploying via AWX, the same outcome is harder to achieve due to changes in collections and python requirements. We maintain our own custom execution environment that is used in AWX. Is there anyway to utilize the same EE locally during the development process?
Beta Was this translation helpful? Give feedback.
All reactions