--- # Основные задачи роли deploy # Автор: Сергей Антропов # Сайт: https://devops.org.ru - name: Include group-specific tasks include_tasks: "{{ item.name }}.yml" loop: "{{ deploy_groups }}" when: item.enabled | bool loop_control: label: "{{ item.name }}" - name: Deploy DinD stack include_tasks: dind-stack.yml when: - apps_enabled | bool - inventory_hostname in groups['apps'] | default([]) - item.type is defined and item.type == 'dind' loop: "{{ groups['apps'] | map('extract', hostvars) | list }}" loop_control: label: "{{ inventory_hostname }}"