Skip to content

Commit 9789e95

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 ("Makefile: use inventory from ansible.cfg") Generated-by: Claude AI Reviewed-by: Daniel Gomez <[email protected] Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 9dfa6e3 commit 9789e95

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

playbooks/mmtests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
- hosts: all
2+
- hosts: baseline:dev
33
roles:
44
- role: mmtests

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

playbooks/roles/gen_hosts/templates/mmtests.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[all]
2+
localhost ansible_connection=local
23
{% for test_type in mmtests_enabled_test_types %}
34
{{ kdevops_host_prefix }}-{{ test_type }}
45
{% if kdevops_baseline_and_dev %}

0 commit comments

Comments
 (0)