mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add ansible_play_name magic var (#48562)
This commit is contained in:
committed by
Sandra McCann
parent
1fff542623
commit
1465f70eb5
@@ -452,6 +452,7 @@ class VariableManager:
|
||||
|
||||
if play:
|
||||
variables['role_names'] = [r._role_name for r in play.roles]
|
||||
variables['ansible_play_name'] = play.get_name()
|
||||
|
||||
if task:
|
||||
if task._role:
|
||||
|
||||
Reference in New Issue
Block a user