rash icon indicating copy to clipboard operation
rash copied to clipboard

group

Open pando85 opened this issue 4 years ago • 1 comments

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

pando85 avatar May 19 '20 18:05 pando85

Could be as #21 but inline, inside file.

pando85 avatar Jun 04 '20 19:06 pando85