Any text editor will work, but don’t use a word-processor. You need to generate plain ascii files.
If you can afford the slight learning curve, see if you can find a programming editor you like. Visual Studio Code is free, multi-platform and excellent, but there are plenty of others that will understand YAML, do syntax highlighting and help you get the indentation right and avoid silly syntactical mistakes.
But this list is for help with ansible issues. If you want to avoid
learning anything about it, then use playbooks/roles/code that are
confirmed to work out of the box. In that case this support list is
less useful for you.