rash
rash copied to clipboard
group
Add block structure to allow create tasks in yaml with common fields (when, ignore_errors, loop, changed_when, until). This create tasks included in group with that fields:
Example:
- name: Skip all if not envar NOT_SKIP
when: env.NOT_SKIP is defined
group:
- name: Say hello
command: echo hi
- command: echo bye
Expands to:
- name: Say hello
command: echo hi
when: env.NOT_SKIP is defined
- command: echo bye
when: env.NOT_SKIP is defined
Could be as #21 but inline, inside file.