roles/wazuh-agent: expand task declaration for clarity

This commit is contained in:
neonmei 2020-11-12 14:39:17 -03:00
parent 1dfd613f0d
commit 8b26658374
No known key found for this signature in database
GPG Key ID: 7EA1832E7E17237E

View File

@ -40,7 +40,8 @@
- init
- name: Linux | Check if client.keys exists
stat: path=/var/ossec/etc/client.keys
stat:
path: /var/ossec/etc/client.keys
register: check_keys
when: wazuh_agent_config.enrollment.enabled == 'yes'
tags:
@ -184,22 +185,24 @@
- api
- name: Linux | Installing agent configuration (ossec.conf)
template: src=var-ossec-etc-ossec-agent.conf.j2
dest=/var/ossec/etc/ossec.conf
owner=root
group=ossec
mode=0644
template:
src: var-ossec-etc-ossec-agent.conf.j2
dest: /var/ossec/etc/ossec.conf
owner: root
group: ossec
mode: 0644
notify: restart wazuh-agent
tags:
- init
- config
- name: Linux | Installing local_internal_options.conf
template: src=var-ossec-etc-local-internal-options.conf.j2
dest=/var/ossec/etc/local_internal_options.conf
owner=root
group=ossec
mode=0640
template:
src: var-ossec-etc-local-internal-options.conf.j2
dest: /var/ossec/etc/local_internal_options.conf
owner: root
group: ossec
mode: 0640
notify: restart wazuh-agent
tags:
- init