Thanks for the quick response.
I see. Since my usage of Ansible is restricted to local execution via
"connection: local", there is no separate control host during normal
runs of my playbooks and roles.
However, when I add molecule into the picture, it seems that it ends
up using the Ansible version from the host system, instead of the
version I have in the container where the playbook would normally be
run (in local mode).
That's not what I was hoping for. The with_fileglob is one hiccup
there, but in general, I know from my colleagues' long term use of
Ansible that on occasion over different Ansible version upgrades,
standard modules change behaviour in subtle ways that can affect the
overall meaning of the playbook (usually when unintentional behaviour
was accidently being relied upon). I was hoping that by throwing a
bunch of containers at molecule, I'd be able to test a range of
different Ansible versions in their native (local) environment within
the containers in order to catch such occurrences.
Is it possible to configure Molecule to execute Ansible within the
container? If not, would this be a feature request worth discussing?
Thanks
Daniel