Interview Prep/Ansible/Cloud, AWX, Windows and Molecule

`Failed to find driver docker. Please ensure that the driver is correctly installed.` after upgrading Molecule

IntermediateTroubleshootingCloud, AWX, Windows and Molecule
Answer

Likely causes → The drivers were split out of Molecule core. The old molecule-docker package is replaced by molecule-plugins[docker], and a fresh virtualenv has only the built-in default (delegated) driver.

Diagnose → molecule drivers, pip list | grep -i molecule.

Fix →

pip install "molecule" "molecule-plugins[docker]" docker

Also install the community.docker collection, which the driver's create and destroy playbooks use.

Prevent → Pin molecule, molecule-plugins, ansible-core and ansible-lint in requirements-dev.txt.

All Ansible questions Roadmap: Ansible

More on Cloud, AWX, Windows and Molecule