-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: default playbooks missing for LXD driver #1587
Comments
You call it a regression. What was the last version this worked as expected? |
|
It looks like those files were removed via PR #1436. |
Nope ;) Default playbooks are moved to For LXD I implemented this in the PR #1436 and it is available since Molecule v2.18. But if you want to maintain these playbooks, just copy them to the scenario directory and the behavior is the same as Molecule <2.17 |
@webknjaz I try to keep updated with the Molecule issues but if needed tag me, especially LXD issues :) |
Why? If you keep those in the molecule resources, rather than a generated dir structure, the behavior may become unreproducible, because of Molecule upgrade and users would not expect such change of behavior. |
Is this documented? |
Yeah somewhat. It was implemented in #1278 and the documentation is found under provisioner/ansible in the docs:
More then the above explanation by @retr0h in the PR I don't know. I personally do not see that much of a problem as long as semver is correctly used. As I stated before for most users this resolves the whole problem of keeping all the playbooks in one place and DRY the roles. This without resulting in the use of submodules or gilt. I am interested in the view of the others though @dj-wasabi @lwm @gundalow :) |
fair enough |
@webknjaz I finally understand the motive behind these changes. Therefore, I consider this closed, although from the documentation piece
I am not sure where to look for the default file. (I know just because I found out from PR #1278 ) |
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Detail any linters or test runners used:
Desired Behavior
After running
molecule init role --role-name basic_server --driver-name lxd
, there should be default playbooks as this:This is working in
molecule==2.17
from pip.Actual Behaviour
Playbooks
create.yml
,destroy.yml
andprepare.yml
are missing.The text was updated successfully, but these errors were encountered: