As I read through the Ansible docs, I’m constantly finding there are many small details missing. Some examples:
- how is the current directory of the command module decided
- what are the all the possible parameters to a task or a playbook (I don’t see these listed anywhere)
- what language syntax applies where (e.g. {{ }} seems to work in some places, but not others (e.g. fails for me within, name: “…{{ }}…” )
- a clear specification a of module interface (e.g. no x=y output is a failure, return codes are ignored, … )
I have an infinite list of small questions like this – as a new user I find I’m spending a lot of time trawling the google groups, SO or the docs, often after spending some hours experimenting to understand the detailed behavior of some small feature. Often, better documentation would have helped.
The documentation improvement process here: https://github.com/ansible/ansible/blob/devel/CONTRIBUTING.md
is problematic. As is often the case, the code contributors have no problem understanding the software, and so are unlikely to know where the need for improvement lies. New users OTOH, can do little with pull requests to help (because they don’t know how to improve the documentation).
So what would help?
- a more wiki-like style of documentation where:
- people can add questions/ask for clarification at the end of the page (how does X work)
- original authors or other community members can respond or update the documentation.
If this is difficult (say, because the docs are auto-generated from code), then perhaps:
- allow a comments and feedback section on each doc page
- notify the original author (e.g. via a field held in community-submitted modules) and update the documentation held in git
- (ideally) the comments could persist following documentation updates until deleted by the author.
The big benefit would be that it would enable the community to be a lot more efficient in:
- discovering answers to problems. Searching the Internet for answers is a hit and miss (and very slow) process. Moving the questions to the documentation pages (where I search first) would allow existing questions and answers to be immediately found.
- improving the documentation (by notifying authors where it is unclear, or allowing users to post questions or see response directly at the docs pages)
Any other ideas on how to improve things for new users?
- Stu