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 # Wazuh Manager
- name: Check if Wazuh Manager is already installed - name: Check if Wazuh Manager is already installed
stat: stat:
path: "{{ wazuh_dir }}/bin/ossec-control" path: /var/ossec/bin/wazuh-control
register: wazuh_ossec_control register: wazuh_control_path
- name: Installing Wazuh Manager from sources - name: Installing Wazuh Manager from sources
block: block:
@ -114,7 +114,7 @@
state: absent state: absent
when: when:
- not wazuh_ossec_control.stat.exists - not wazuh_control_path.stat.exists
- wazuh_manager_sources_installation.enabled - wazuh_manager_sources_installation.enabled
tags: tags:
- manager - manager

View File

@ -197,7 +197,7 @@
- config - config
- name: Enable client-syslog - 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 notify: restart wazuh-manager
when: when:
- csyslog_enabled.stdout == '0' or "skipped" in csyslog_enabled.stdout - csyslog_enabled.stdout == '0' or "skipped" in csyslog_enabled.stdout
@ -219,7 +219,7 @@
- config - config
- name: Enable ossec-agentlessd - name: Enable ossec-agentlessd
command: "{{ wazuh_dir }}/bin/ossec-control enable agentless" command: "{{ wazuh_dir }}/bin/wazuh-control enable agentless"
notify: restart wazuh-manager notify: restart wazuh-manager
when: when:
- agentlessd_enabled.stdout == '0' or "skipped" in agentlessd_enabled.stdout - agentlessd_enabled.stdout == '0' or "skipped" in agentlessd_enabled.stdout