For YAML of VSCode
Create json-schemas for ansible playbook and role/task including [json.schemastore.org/ansible-role-2.9]. In addtion, these contain schemas for almost all available keywords.
make clean
make all
{
"yaml.schemas": {
"ansible-playbook-2.9.json": ["/test.yml"],
"ansible-tasks-2.9.json": ["/roles/*/tasks/*.yml"]
}
}