Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve dependency order on Java installation for ODFE #604

Open
wants to merge 1 commit into
base: 4.3
Choose a base branch
from

Conversation

jondecamp
Copy link

Related to issue #602 - installing Java before running local_actions, which depends on Java.

Copy link
Contributor

@okynos okynos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @jondecamp,

Thanks for your contribution. We have seen that this change has an incorrect behaviour in cases where perform_installation is set to false. This variable is set to false in wazuh-odfe-production-ready.yml. Let me suggest you the following change: you could split the blocks to keep the logic and move the local_actions between both blocks. See one example:

- block:
  name: Provide redhat
  ...
 
  name: Provide debian
  ...
  when: perform_installation

- import_tasks: local_actions

- block:
  name: The rest of tasks
  when: perform_installation

@alberpilot alberpilot changed the base branch from master to 4.3 November 24, 2021 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants