document what the name of a play is (#72633)

##### SUMMARY

Make clear that `ansible_play_name` is the name attribute from the play and not the file name of the playbook.

improves #57361

##### ISSUE TYPE
- Docs Pull Request

+label: docsite_pr
This commit is contained in:
Simon Heimberg 2020-11-17 17:56:49 +01:00 committed by GitHub
parent d8baf4d38d
commit ad4ddd8211
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ play_hosts
Deprecated, the same as ansible_play_batch
ansible_play_name
The name of the currently executed play. Added in ``2.8``.
The name of the currently executed play. Added in ``2.8``. (`name` attribute of the play, not file name of the playbook.)
playbook_dir
The path to the directory of the playbook that was passed to the ``ansible-playbook`` command line.