add another task if host match

This commit is contained in:
Chris Hammer 2023-05-22 10:51:36 -04:00
parent c39d7b14db
commit 7914e64b20

View File

@ -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 }}"