ansible / proposals

Repository for sharing and tracking progress on enhancement proposals for Ansible.
Creative Commons Zero v1.0 Universal
93 stars 19 forks source link

extend ansible-doc to more than modules #40

Closed bcoca closed 6 years ago

bcoca commented 7 years ago

Proposal: extend ansible-doc

Author: Brian Coca <@bcoca>

Date: 2016/11/34

Motivation

Provide better 'command line' access to docs for plugins and roles (also plays?)

Problems

Solution proposal

Dependencies

drybjed commented 7 years ago

Role could have an URL for its documentation included in meta/main.yml, this would solve the issue of how the documentation should be maintained. There could also be a big shiny "Documentation" button on Ansible Galaxy.

bcoca commented 7 years ago

We already have facilities for documentation in the role (readme and meta/main.yml), having a link does not help for the problem case of not having browser/internet access.

geerlingguy commented 7 years ago

Ooh, CLI docs... :)

Much less use of Dash and Google when doing playbooks would be a win for my productivity. Even if it just gave the table of options for a given module, it would save me a lot of time.

drybjed commented 7 years ago

@bcoca I'm sorry, but the README.md file is just not enough to properly document roles. Case in point, check documentation of the debops.pki role - do you expect all of this to be squeezed into README file? I see the role README as an introduction and explanation of what the role can be used for, not for detailed documentation.

bcoca commented 7 years ago

No, i expect it to be a starting point, still trying to think on how to best document roles and 'non module' plugins.

geerlingguy commented 7 years ago

@drybjed - For the majority of roles, though, a separate docs site isn't really required... there are some roles for which it's helpful, but maybe 90% of the roles I use have 5-10 variables that are meant to be tweaked, and require little in the way of extra explanation (or link off to underlying software's documentation for more advanced use).

Not to say it wouldn't be nice to have a 'docs_url' variable to set or something like that, but I do think that level of role documentation may be an exception rather than the norm.

bcoca commented 6 years ago

closing as 'completed' as all basic facilities are there, just need to convert some plugin types and that will be done over time.