comments at end-of-line ??

None of the Ansible playbook documentation I have seen shows putting comments at the end of a line.

YAML supports end-of-line comments, and my initial test with end-of-line comments in ansible playbooks seem to work fine.

Is there some technical reason to avoid end-of-line comments in ansible playbooks?

There is none, as we are just using PyYAML for standard YAML parsing.

I do find above line comments easier to read, so typically go with those.

(The “name” field on a task or playbook can also serve as a comment of sorts, that will actually show when running the playbook.)