Skip to content

fix: use correct path for wazuh-ansible role - #2581

Open
jackhodgkiss wants to merge 1 commit into
stackhpc/2026.1from
fix-wazuh-role-path
Open

fix: use correct path for wazuh-ansible role#2581
jackhodgkiss wants to merge 1 commit into
stackhpc/2026.1from
fix-wazuh-role-path

Conversation

@jackhodgkiss

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Jack Hodgkiss <jack@stackhpc.com>
@jackhodgkiss
jackhodgkiss requested a review from a team as a code owner September 4, 2026 09:58
@github-actions github-actions Bot added the waiting-review PR is waiting for a review label Sep 4, 2026
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: a8ea482e-5645-432d-8b07-fe1adeb4b84b

📥 Commits

Reviewing files that changed from the base of the PR and between 7e454bb and 473fffe.

📒 Files selected for processing (3)
  • etc/kayobe/ansible/deployment/wazuh-agent.yml
  • etc/kayobe/ansible/deployment/wazuh-manager.yml
  • releasenotes/notes/fix-wazuh-role-path-c9984184fac52f43.yaml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: Ansible 2.19 lint with Python 3.12
  • GitHub Check: Ansible 2.20 lint with Python 3.12
🔇 Additional comments (3)
etc/kayobe/ansible/deployment/wazuh-agent.yml (1)

8-8: LGTM!

etc/kayobe/ansible/deployment/wazuh-manager.yml (1)

41-41: LGTM!

Also applies to: 52-55

releasenotes/notes/fix-wazuh-role-path-c9984184fac52f43.yaml (1)

1-4: LGTM!


📝 Summary

Corrected Wazuh Ansible role paths in the agent and manager deployment playbooks. Added a release note for the fix.

Walkthrough

The deployment playbooks now use corrected Wazuh Ansible role paths. A release note documents the path correction.

Changes

Wazuh role path correction

Layer / File(s) Summary
Update Wazuh role paths
etc/kayobe/ansible/deployment/wazuh-agent.yml, etc/kayobe/ansible/deployment/wazuh-manager.yml, releasenotes/notes/fix-wazuh-role-path-c9984184fac52f43.yaml
The agent and manager playbooks now use wazuh-ansible/roles paths. The release note records the correction.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 473ff

The Wazuh agent and manager playbooks now load roles from the correct dependency path, restoring deployment role resolution without introducing an identified merge-blocking risk.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jackhodgkiss

Copy link
Copy Markdown
Contributor Author

Appears to mismatch between linting and what works in kayobe which is probably how the error was introduced in the first place.

ERROR! the role 'wazuh-ansible/wazuh-ansible/roles/wazuh/wazuh-indexer' was not found in /usr/home/jph/deployment/src/kayobe-config/etc/kayobe/ansible/deployment/roles:/usr/home/jph/deployment/src/kayobe-config/etc/kayobe/ansible/roles:/usr/home/jph/deployment/venvs/kayobe/share/kayobe/ansible/roles:/usr/home/jph/deployment/src/kayobe-config/etc/kayobe/ansible/deployment

The error appears to be in '/usr/home/jph/deployment/src/kayobe-config/etc/kayobe/ansible/deployment/wazuh-manager.yml': line 41, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - role: wazuh-ansible/wazuh-ansible/roles/wazuh/wazuh-indexer
      ^ here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-review PR is waiting for a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant