Other than web documentation, is there a command line way to access a list of all the available general playbook keywords similar to what the 'ansible-doc' command does for modules & their options, and how 'ansible-config dump' does it for ansible.cfg options?
You have the "in-system" documentation provided by the `ansible-doc` RPM.
EG: /usr/share/doc/ansible-doc/rst/user_guide/
You have your HTML versions too, if you find that useful...
That's not completely true.
It seems that since ansible-doc inclusion in ansible package the rst and html documentation in not installed anymore.
I was looking for the same answer some days ago and this is all that i found, but if you have better answer...you are welcome :)
I'm asking about generic play keywords like
changed_when
with_file
with_sequence
when
handlers
notify
ignore_errors
failed_when
My question might be trivial but I'm trying to understand how complete the "in-system" documentation is. Seems we get keyword/option docs for the ansible.cfg and modules but not for the paybook keywords themselves
https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.