[PATCH v2 1/4] bootlinux: fix 9P clone task being skipped when using --tags clone
Daniel Gomez <[email protected]> Mon, 01 Dec 2025 20:14:38 +0100
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <20251201-custom-linux-9p-tree-and-mount-point-v2-1-c720a83cab91@samsung.com> |
From: Daniel Gomez <[email protected]> The linux-clone-9p make target runs ansible-playbook with --tags clone, but the 9P build tasks were never executed because the include_tasks directive lacked the clone tag. Unlike import_tasks which is processed statically at parse time and inherits tags to all child tasks, include_tasks is processed dynamically at runtime and tags only apply to the include statement itself, not to tasks inside the included file. When Ansible filters tasks by tags, it evaluates the include_tasks first and since it had no tags matching "clone", the entire include was skipped before child tasks were even considered. Add the clone and build-linux tags to the include_tasks directive so the 9P build file is included when running with either tag filter. Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]> --- playbooks/roles/bootlinux/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/roles/bootlinux/tasks/main.yml b/playbooks/roles/bootlinux/tasks/main.yml index da42612e..8fcb9e47 100644 --- a/playbooks/roles/bootlinux/tasks/main.yml +++ b/playbooks/roles/bootlinux/tasks/main.yml @@ -230,6 +230,7 @@ file: "{{ role_path }}/tasks/build/9p.yml" when: - bootlinux_9p|bool + tags: ["clone", "build-linux"] - name: Build the Linux kernel on the target nodes ansible.builtin.include_tasks: -- 2.52.0