Open rgilmiyarov opened 3 years ago
Thanks, @rgilmiyarov for reporting this issue.
The issue isn't a bug for the molecule.
Please see: https://docs.ansible.com/ansible/2.9/user_guide/playbooks_variables.html?highlight=ansible_user#variable-precedence-where-should-i-put-a-variable
If you want to overwrite the ansible_user variable, for example, please use the vars directive, not remote_user.
You can also override as a normal variable in a play:
- hosts: all
vars:
ansible_user: lola
tasks:
- command: I'll connect as lola!
Does this answer your question?
SUMMARY
ISSUE TYPE
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS