๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
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.
 
 
ansible-playbooks/tasks/includes/stage.yml

16 lines
397 B

- 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_deps | selectattr('stage', 'equalto', (this_stage | int)) | list }}"
loop_control:
loop_var: this_role