Skip to content

Resolve dependency order on Java installation for ODFE#604

Open
jondecamp wants to merge 1 commit into
wazuh:4.3from
jondecamp:fix-odfe-java-order
Open

Resolve dependency order on Java installation for ODFE#604
jondecamp wants to merge 1 commit into
wazuh:4.3from
jondecamp:fix-odfe-java-order

Conversation

@jondecamp

Copy link
Copy Markdown

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

@okynos okynos left a comment

Copy link
Copy Markdown
Contributor

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