I have not tested it, check it yourself. Ali --- - name: Install Wazuh agent hosts: <remote servers> become: yes
tasks: - name: Add Wazuh repository key apt_key: url: https://packages.wazuh.com/key/GPG-KEY-WAZUH state: present - name: Add Wazuh repository apt_repository: repo: "deb https://packages.wazuh.com/4.x/apt/ stable main" state: present - name: Update apt cache apt: update_cache: yes - name: Install Wazuh agent apt: name: wazuh-agent state: present - name: Configure Wazuh agent copy: src: /path/to/wazuh-agent.conf dest: /var/ossec/etc/shared/wazuh-agent.conf owner: root group: ossec mode: '0640' notify: - restart wazuh-agent handlers: - name: restart wazuh-agent service: name: wazuh-agent On Wed, 14 Jun 2023 at 14:00, Dick Visser <dnmvis...@gmail.com> wrote: > > > On Wed, 14 Jun 2023 at 12:35, malek sakir <2141.maleksa...@gmail.com> > wrote: > >> any one help me to write playbook for wazuh agent(.deb file) >> installation in linux target hosts. >> >> > > https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_intro.html#playbook-syntax > > https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_module.html > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ansible-project+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAF8BbLZviBUWnXVETjAtQJGUWOHP9%3Dbq-g2qF5dQU%2BrfbFOKeA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAF8BbLZviBUWnXVETjAtQJGUWOHP9%3Dbq-g2qF5dQU%2BrfbFOKeA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAM_Jfhzse9wzAaopxvuhYtxUHx%3DP7Si5GBRENULE7VrtK6BioA%40mail.gmail.com.