molecule-plugins icon indicating copy to clipboard operation
molecule-plugins copied to clipboard

Documentation on how to use said plugin ?

Open jehutyy opened this issue 1 year ago • 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.

jehutyy avatar Aug 29 '24 09:08 jehutyy

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 avatar Aug 29 '24 12:08 konstruktoid

#267

nemonik avatar Sep 04 '24 19:09 nemonik

@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.

MaKaNu avatar Dec 20 '24 14:12 MaKaNu

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.

konstruktoid avatar Dec 20 '24 15:12 konstruktoid