Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group #14

Open
pando85 opened this issue May 19, 2020 · 1 comment
Open

group #14

pando85 opened this issue May 19, 2020 · 1 comment
Milestone

Comments

@pando85
Copy link
Member

pando85 commented May 19, 2020

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 pando85 added this to the v1 milestone May 19, 2020
@pando85 pando85 changed the title block group May 19, 2020
@pando85 pando85 modified the milestones: v1, v2 May 31, 2020
@pando85
Copy link
Member Author

pando85 commented Jun 4, 2020

Could be as #21 but inline, inside file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

1 participant