Is it possible to pass arguments to molecule.yml?
More specifically, I want to use a delegated driver to run a few playbooks on a host with a rather specific way to access it. First, I need to grab an username and password from the person running the playbook, and then use that as a jump to the actual ansible user, since direct access to the ansible user is blocked.
Worst case scenario I can template them in using an external tool, but I’d rather avoid overcomplicated solutions.
Hi,
Molecule can indeed utilise regular Ansible flags.
ie. molecule test -- -u remote_user
If its to run as the user running the tests then this can be easily done using the environment vars.
Regards