roles: rename references of ossec-control to wazuh-control

This commit is contained in:
neonmei 2020-12-15 14:53:45 -03:00 committed by VictorMorenoJimenez
parent df25f1edf8
commit 325e18911d
No known key found for this signature in database
GPG Key ID: CE9668E2E3083179
2 changed files with 5 additions and 5 deletions

View File

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

View File

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