wazuh-ansible icon indicating copy to clipboard operation
wazuh-ansible copied to clipboard

Ansible Collection

Open keilr opened this issue 4 years ago • 8 comments

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: ...
    ...

keilr avatar Feb 09 '21 21:02 keilr

+1 for this.

filicivi avatar Apr 07 '21 08:04 filicivi

+1

viswork avatar Apr 07 '21 15:04 viswork

+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.

wickedviking avatar Apr 08 '21 18:04 wickedviking

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 avatar Oct 14 '21 16:10 colans

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

colans avatar Oct 29 '21 17:10 colans

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!

okynos avatar Nov 12 '21 09:11 okynos

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

darkdecoy avatar Oct 25 '22 22:10 darkdecoy

@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!

colans avatar Oct 28 '22 14:10 colans