Hi list,
I'd like to open a discussion about "description" parameter.
Ansible does nothing about on it. It just describing what is it.
I know YAML can have a comment and name is good to know what this task
do. But comment is not structured and name can not be long because
handlers use it.
If ansible defines "description", some documentation tool like Sphinx
[1] can read it and produces a good document.
---
- hosts: all
description: This playbook is an example for describe parameter
tasks:
- name: create empty file
file: path=/tmp/empty state=touch
description: >
This empty file is needed to later tasks,
such as A, B, and C. so we have to do blah blah blah
- name: do some script
script: /some/local/script.sh
description:
- a
- b
- c
- script: /some/local/script.sh
description:
can: use map
some: thing
other: thing
- include: other.yml
description:
- include can have description also
I have made PR which make very small change.
https://github.com/ansible/ansible/pull/9230
Thanks for your feedback.
[1] Sphinx:
http://sphinx-doc.org/
WAKAYAMA Shirou