Add MOLECULE_SUFFIX for naming uniqueness in molecule.yml #3149
Replies: 3 comments
-
I am ok to add a I am not yet sure if We need to be sure that this feature does not break the I wonder if we could maybe expose something like platforms:
- name: "myrolename${MOLECULE_SUFFIX:}" For example |
Beta Was this translation helpful? Give feedback.
-
Oh yeah, OK, this is a ready for a pull request! |
Beta Was this translation helpful? Give feedback.
-
Related https://github.com/ansible-community/molecule/issues/2462. |
Beta Was this translation helpful? Give feedback.
-
Issue Type
Molecule and Ansible details
Latest
Molecule installation method (one of):
Ansible installation method (one of):
Desired Behavior
My
molecule.yml
looks like so.Where I export
INSTANCE_UUID
into the environment in order to have my VPS instance names not clash when different people are running builds that should still be run in serial execution. Therefore,--parallel
is not an option here.So, I think it would be nice to avoid this step and have some sort of "magic variable" exposed from molecule side so that I can use it as needed in the instance name through variable expansion.
If in agreement, I'll send a patch.
Beta Was this translation helpful? Give feedback.
All reactions