Skip to content

Commit ad1766f

Browse files
author
Alan Christie
committed
- Variable typo (inventory_host)
1 parent 14c1454 commit ad1766f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/add-inventory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
- name: Add hosts to groups
6666
include_tasks: add-inventory-host-to-groups.yaml
6767
vars:
68-
host_groups: "{{ inventory|json_query('hosts[?name==`' + host + '`].groups')|flatten }}"
68+
host_groups: "{{ inventory|json_query('hosts[?name==`' + inventory_host + '`].groups')|flatten }}"
6969
loop: "{{ inv_hosts }}"
7070
loop_control:
7171
loop_var: inventory_host

0 commit comments

Comments
 (0)