Prevent misspelled variables passed to Ansible roles
Q: " Prevent misspelled variables passed to Ansible roles ... remove the defaults/main.yml, ... But then I can't take advantage of the benefits of having defaults. Are there other solutions?


A: Yes. Tell include_role to read other file defaults_from. Fit the content of this file to your needs. For example

- include_role:
    name: foo
    defaults_from: main_special.yml
  vars:
    fooo_version: "2.0"