Skip to content

Commit 787febf

Browse files
committed
gen_hosts: fix inventory path for dedicated mmtests workflow
The dedicated mmtests workflow generation was using kdevops_hosts variable instead of ansible_cfg_inventory, causing the generated hosts file to be placed in the wrong location. This resulted in ansible not finding the correct inventory for mmtests runs. Use ansible_cfg_inventory which correctly points to the inventory path configured in ansible.cfg, ensuring the generated hosts file is placed where ansible expects it. Fixes: 0987c30 ("gen_hosts: add initial support for dedicated mmtests workflow") Generated-by: Claude AI Signed-off-by: Luis Chamberlain <[email protected]>
1 parent f347eb1 commit 787febf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playbooks/roles/gen_hosts/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@
342342
tags: [ 'hosts' ]
343343
template:
344344
src: "{{ kdevops_hosts_template }}"
345-
dest: "{{ topdir_path }}/{{ kdevops_hosts }}"
345+
dest: "{{ ansible_cfg_inventory }}"
346346
force: yes
347347
trim_blocks: True
348348
lstrip_blocks: True

0 commit comments

Comments
 (0)