add another task if host match
This commit is contained in:
parent
c39d7b14db
commit
7914e64b20
@ -32,6 +32,13 @@
|
|||||||
msg: "{{ item }}"
|
msg: "{{ item }}"
|
||||||
loop: "{{ install_products }}"
|
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
|
# - name: Includes on loop
|
||||||
# ansible.builtin.include_tasks: "includes/{{ item }}.yml"
|
# ansible.builtin.include_tasks: "includes/{{ item }}.yml"
|
||||||
# loop: "{{ install_products }}"
|
# loop: "{{ install_products }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user