mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
parent
d6f61d5397
commit
937584cd52
1 changed files with 1 additions and 0 deletions
|
@ -366,6 +366,7 @@ class VariableManager:
|
||||||
variables['role_names'] = [r._role_name for r in play.roles]
|
variables['role_names'] = [r._role_name for r in play.roles]
|
||||||
|
|
||||||
if task:
|
if task:
|
||||||
|
variables['environment'] = task.environment
|
||||||
if task._role:
|
if task._role:
|
||||||
variables['role_path'] = task._role._role_path
|
variables['role_path'] = task._role._role_path
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue