roles: rename references of ossec-control to wazuh-control
This commit is contained in:
parent
df25f1edf8
commit
325e18911d
@ -2,8 +2,8 @@
|
||||
# Wazuh Manager
|
||||
- name: Check if Wazuh Manager is already installed
|
||||
stat:
|
||||
path: "{{ wazuh_dir }}/bin/ossec-control"
|
||||
register: wazuh_ossec_control
|
||||
path: /var/ossec/bin/wazuh-control
|
||||
register: wazuh_control_path
|
||||
|
||||
- name: Installing Wazuh Manager from sources
|
||||
block:
|
||||
@ -114,7 +114,7 @@
|
||||
state: absent
|
||||
|
||||
when:
|
||||
- not wazuh_ossec_control.stat.exists
|
||||
- not wazuh_control_path.stat.exists
|
||||
- wazuh_manager_sources_installation.enabled
|
||||
tags:
|
||||
- manager
|
||||
|
||||
@ -197,7 +197,7 @@
|
||||
- config
|
||||
|
||||
- name: Enable client-syslog
|
||||
command: "{{ wazuh_dir }}/bin/ossec-control enable client-syslog"
|
||||
command: "{{ wazuh_dir }}/bin/wazuh-control enable client-syslog"
|
||||
notify: restart wazuh-manager
|
||||
when:
|
||||
- csyslog_enabled.stdout == '0' or "skipped" in csyslog_enabled.stdout
|
||||
@ -219,7 +219,7 @@
|
||||
- config
|
||||
|
||||
- name: Enable ossec-agentlessd
|
||||
command: "{{ wazuh_dir }}/bin/ossec-control enable agentless"
|
||||
command: "{{ wazuh_dir }}/bin/wazuh-control enable agentless"
|
||||
notify: restart wazuh-manager
|
||||
when:
|
||||
- agentlessd_enabled.stdout == '0' or "skipped" in agentlessd_enabled.stdout
|
||||
|
||||
Loading…
Reference in New Issue
Block a user