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