- name: Test Includes Performance hosts: all # connection: local gather_facts: false # - name: Install/Remediate/Upgrade Product Functionality # include_tasks: ../tasks/products/products-install.yml # loop: "{{ install_products }}" # loop_control: # loop_var: install_product vars: host_match: lab-dev-1 install_products: - inc1 - inc2 - inc3 - inc4 - inc5 tasks: - name: Debug y0 ansible.builtin.debug: msg: "y0" - name: Loop vars if host match when: host_match in inventory_hostname ansible.builtin.debug: msg: "{{ item }}" loop: "{{ install_products }}" - name: Loop vars if host match again when: host_match in inventory_hostname ansible.builtin.debug: msg: "{{ item }}" loop: "{{ install_products }}" # - name: Includes on loop # ansible.builtin.include_tasks: "includes/{{ item }}.yml" # loop: "{{ install_products }}"