From 7914e64b20cea59e08706ca66404191531287ea2 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Mon, 22 May 2023 10:51:36 -0400 Subject: [PATCH] add another task if host match --- test_includes.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test_includes.yml b/test_includes.yml index bc382fa..848aef2 100644 --- a/test_includes.yml +++ b/test_includes.yml @@ -32,6 +32,13 @@ 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 }}"