add another task if host match
This commit is contained in:
parent
c39d7b14db
commit
7914e64b20
@ -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 }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user