Implemented vars clause

* Can be used on any instruction
  * Variables are evaluated before condition is checked
This commit is contained in:
Emmanuel BENOîT 2022-09-18 10:06:19 +02:00
parent 2fd5ba9bb4
commit f2d1e2da50
2 changed files with 69 additions and 10 deletions

View file

@ -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