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

ODFE cert generation depends on Java, takes place before Java is installed #602

Open
jondecamp opened this issue Jun 10, 2021 · 3 comments

Comments

@jondecamp
Copy link

The local_actions.yml tasks that generate the certificates require Java. Java is not installed until the tasks in RedHat.yml or Debian.yml are performed.

- import_tasks: local_actions.yml
when:
- generate_certs
- block:
- import_tasks: RedHat.yml
when: ansible_os_family == 'RedHat'
- import_tasks: Debian.yml
when: ansible_os_family == 'Debian'

Am I missing something? I'd like to submit a PR to move this block below the two platform specific steps, resolving the dependency order. This has worked in my testing.

@jondecamp
Copy link
Author

Related pull request here: #604

@maharg101
Copy link

Just to add, from the perspective of someone running the ansible from a mac targeting installation of wazuh onto Ubuntu that the local_actions.yml is delegated to localhost. So changing the order would have no impact unless you are deploying onto localhost.

@alberpilot
Copy link
Contributor

Hello @jondecamp

Please review the comments: #604 (review). Thanks!

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

No branches or pull requests

3 participants