Implemented vars clause
* Can be used on any instruction * Variables are evaluated before condition is checked
This commit is contained in:
parent
2fd5ba9bb4
commit
f2d1e2da50
2 changed files with 69 additions and 10 deletions
example
|
@ -95,7 +95,7 @@ instructions:
|
|||
# Component group. We add the host directly if there is no subcomponent.
|
||||
- when: inv__component is defined
|
||||
action: block
|
||||
locals:
|
||||
vars:
|
||||
comp_group: "svcm_{{ inv__service }}_{{ inv__component }}"
|
||||
block:
|
||||
- action: create_group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue