Fix cleanup tasks for Wazuh Manager and Agent
This commit is contained in:
parent
c9c00b82c2
commit
fa0e3f1640
@ -11,12 +11,14 @@
|
|||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Removing old files
|
- name: Removing old files
|
||||||
file: "/tmp/{{ wazuh_agent_sources_installation.branch }}.tar.gz"
|
file:
|
||||||
state: absent
|
path: "/tmp/{{ wazuh_agent_sources_installation.branch }}.tar.gz"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Removing old folders
|
- name: Removing old folders
|
||||||
file: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}"
|
file:
|
||||||
state: absent
|
path: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Installing policycoreutils-python (RedHat families)
|
- name: Installing policycoreutils-python (RedHat families)
|
||||||
package:
|
package:
|
||||||
@ -86,9 +88,11 @@
|
|||||||
chdir: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}"
|
chdir: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}"
|
||||||
|
|
||||||
- name: Cleanup downloaded files
|
- name: Cleanup downloaded files
|
||||||
file: "/tmp/{{ wazuh_agent_sources_installation.branch }}.tar.gz"
|
file:
|
||||||
state: absent
|
path: "/tmp/{{ wazuh_agent_sources_installation.branch }}.tar.gz"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Cleanup created folders
|
- name: Cleanup created folders
|
||||||
file: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}"
|
file: "/tmp/{{ wazuh_agent_sources_installation.branch }}.tar.gz"
|
||||||
state: absent
|
path: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}"
|
||||||
|
state: absent
|
||||||
@ -19,12 +19,14 @@
|
|||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Removing old files
|
- name: Removing old files
|
||||||
file: "/tmp/{{ wazuh_manager_sources_installation.branch }}.tar.gz"
|
file:
|
||||||
state: absent
|
path: "/tmp/{{ wazuh_manager_sources_installation.branch }}.tar.gz"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Removing old folders
|
- name: Removing old folders
|
||||||
file: "/tmp/wazuh-{{ wazuh_manager_sources_installation.branch }}"
|
file:
|
||||||
state: absent
|
path: "/tmp/wazuh-{{ wazuh_manager_sources_installation.branch }}"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Installing policycoreutils-python (RedHat families)
|
- name: Installing policycoreutils-python (RedHat families)
|
||||||
package:
|
package:
|
||||||
@ -98,12 +100,14 @@
|
|||||||
chdir: "/tmp/wazuh-{{ wazuh_manager_sources_installation.branch }}"
|
chdir: "/tmp/wazuh-{{ wazuh_manager_sources_installation.branch }}"
|
||||||
|
|
||||||
- name: Cleanup downloaded files
|
- name: Cleanup downloaded files
|
||||||
file: "/tmp/{{ wazuh_manager_sources_installation.branch }}.tar.gz"
|
file:
|
||||||
state: absent
|
path: "/tmp/{{ wazuh_manager_sources_installation.branch }}.tar.gz"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Cleanup created folders
|
- name: Cleanup created folders
|
||||||
file: "/tmp/wazuh-{{ wazuh_manager_sources_installation.branch }}"
|
file:
|
||||||
state: absent
|
path: "/tmp/wazuh-{{ wazuh_manager_sources_installation.branch }}"
|
||||||
|
state: absent
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- not wazuh_ossec_control.stat.exists
|
- not wazuh_ossec_control.stat.exists
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user