Hey hello,
I'm trying to integrate molecule in my company, and i've actually a little problem. I'm searching how to minimize the molecule.yml for tech users, like this they should at least edit few arguments, write tests and their roles are prod ready.
So i went to --base-config because it looked good !
I tried to use it and i encountered a first issue linked to this PR (
https://github.com/ansible/molecule/pull/2287).
It was
merged so I installed 3.0a4 version
to test it.
But when i use my base-config and test my role i get that :

My env :

My base-config :
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
options:
config-file: ../../.yamllint
platforms:
- name: molecule-role-deb
image: jrei/systemd-debian:9
dockerfile: ../../../../test/molecule/Dockerfile.j2
command: /lib/systemd/systemd
env:
container: docker
- name: molecule-role-rhel
image: jrei/systemd-centos:7
dockerfile: ../../../../test/molecule/Dockerfile.j2
command: /lib/systemd/systemd
env:
container: docker
provisioner:
name: ansible
log: true
playbooks:
create: ../../../../test/molecule/create-3.0a4.yml
destroy: ../../../../test/molecule/destroy-3.0a4.yml
converge: ../shared_files/converge.yml
inventory:
links:
host_vars: ../../../../inventories/molecule/host_vars
lint:
name: ansible-lint
scenario:
converge_sequence:
- dependency
- create
- prepare
- converge
- destroy
test_sequence:
- lint
- destroy
- dependency
- syntax
- create
- prepare
- converge
- idempotence
- side_effect
- verify
- destroy
verifier:
name: testinfra
directory: ../shared_files/tests
options:
vvv: true
lint:
name: flake8My molecule.yml :
---
platforms:
- name: molecule-bash-deb
- name: molecule-bash-rhel
scenario:
name: default
But, when i decide to delete on my molecule.yml the platforms part and i only let the scenario one, all works fine.
Maybe that the overriding act is not supported or maybe am i doing it wrongly !
Do you think that i should submit a github issue or is it the molecule wanted behavior ?
Thank you in advance,
Warmly Zweeking