What should a role README contain?
BeginnerProductionProject Structure and Design
Answer
What the role does and supports (OS and versions), a table of variables with defaults and meaning, dependencies (collections and roles), example playbook usage, tags, handlers, how to test it (molecule test), and known limitations.
With argument_specs, ansible-doc -t role can generate the variable documentation, so the README does not drift from the code.
More on Project Structure and Design
What does a production Ansible repository look like?BeginnerMonorepo or separate repos for roles? How do you decide?IntermediateHow do you structure inventories for dev, stage and prod?BeginnerHow do you prevent someone from running a playbook against production by accident?IntermediateWhat does "thin playbooks, fat roles" mean?IntermediateWhat makes a well-designed role?Intermediate