wazuh / wazuh-ansible

Wazuh - Ansible playbook
https://wazuh.com
Other
298 stars 191 forks source link

Ansible Collection #545

Open keilr opened 3 years ago

keilr commented 3 years ago

I'm new to Wazuh and I was very happy to see this official Wazuh Ansible repository! Great work!

It would be nice to enhance this project by aligning it to the Ansible collection format, so one can easily install the playbooks and roles by using the Ansible Galaxy cli-tool. Roles could be accessed by name instead of paths. Adding it to the Ansible Galaxy repository should be considered.

Installation

From galaxy ...

ansible-galaxy collection install wazuh.wazuh

... or from github repo and stable branch

ansible-galaxy collection install git+https://github.com/wazuh/wazuh-ansible.git,stable   

(requires ansible>=2.10)

Using Roles

---
- hosts: host001
  roles:
    - wazuh.wazuh.agent
  vars:
    wazuh_managers:
      - address: ...
    ...
filicivi commented 3 years ago

+1 for this.

viswork commented 3 years ago

+1

wickedviking commented 3 years ago

+1

We just stood this up in our lab to evaluate and are planning to move forward shortly. We have forked this project into our internal gitlab, but I agree, this would be much nicer to use/manage if it were a collection... especially if you publish this to the galaxy.

colans commented 3 years ago

It probably makes sense to keep https://github.com/wazuh/wazuh-ansible/issues/325 for publishing and this one for reformatting the repository. Therefore, the other ticket needs to wait until this one gets in.

Aside: Instead of posting "+1"-style comments (which only serve to spam subscribers), please hit the "thumbs up" button at the bottom of the description as this provides useful data on how many folks are interested. Thanks!

colans commented 3 years ago

@gcupic Please (re)read the second paragraph of my comment above. Thanks.

okynos commented 3 years ago

Hello guys,

We are working hard to maintain and improve our repositories day by day and we will work on this matter as soon as possible. Feel free to give us a hand with PRs and code modifications to solve this matter.

Thanks for your patience!

darkdecoy commented 2 years ago

I have been working on turning the 4.3 branch into an ansible collection containing the roles and playbooks. I have tested the all in one deployment and deploying agents and both of those work.

https://github.com/atcommander/wazuh

I created a pull request 855

colans commented 2 years ago

@okynos Would one of you folks be able to take a look at https://github.com/wazuh/wazuh-ansible/pull/855 and possibly approve the workflow so that CI tests can run? Thanks!