ansible-community/molecule-plugins

Documentation on how to use said plugin ?

jehutyy opened this issue · 4 comments

Is there a documentation to use plugins ?
I'm interested in molecule-plugin[docker] and I can't find any doc about that.

yeah, it's all kind of out-of-date.

molecule init scenario -d docker myrepo is a good starting point, and as an example: https://github.com/konstruktoid/ansible-role-hardening/tree/master/molecule/docker

@konstruktoid liked your approach of reusing the same converge.yml and verify.yml in multiple scenarios. Do you know if it is possible to do the same the other way around? Having multiple scenarios which represent different approaches to my roles, so I have different converge.yml and verify.yml, but utilizing the same molecule.yml.

I haven't tried @MaKaNu but I believe the playbooks (https://ansible.readthedocs.io/projects/molecule/configuration/#molecule.provisioner.ansible.Ansible.playbooks) use standard Ansible variables, so converge-{{ ansible_distribution }}.yml should work.