You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
400 B
17 lines
400 B
2 years ago
|
- name: fail if stage is missing
|
||
|
fail:
|
||
|
msg: stage should be defined
|
||
|
when: this_stage is not defined
|
||
|
|
||
|
|
||
|
- name: define current stage
|
||
|
set_fact:
|
||
|
stage: "{{ this_stage | int }}"
|
||
|
|
||
|
|
||
|
- name: include roles for selected stage
|
||
|
include_tasks: tasks/includes/role.yml
|
||
|
loop: "{{ role_mapping | selectattr('stage', 'equalto', (this_stage | int)) | list }}"
|
||
|
loop_control:
|
||
|
loop_var: this_role
|