Merge branch 'feature-lint-role-filebeat-oss'

This commit is contained in:
neonmei 2020-11-12 13:07:04 -03:00
commit ac796d2fdc
No known key found for this signature in database
GPG Key ID: 7EA1832E7E17237E

View File

@ -4,24 +4,22 @@
file: file:
path: "{{ filebeat_ssl_dir }}" path: "{{ filebeat_ssl_dir }}"
state: directory state: directory
owner: root
group: root
mode: 0774
- name: Copy the certificates from local to the Manager instance - name: Copy the certificates from local to the Manager instance
copy: copy:
src: "{{ local_certs_path }}/certs/{{ item }}" src: "{{ local_certs_path }}/certs/{{ item }}"
dest: "{{ filebeat_ssl_dir }}" dest: "{{ filebeat_ssl_dir }}"
owner: root
group: root
mode: 0644 mode: 0644
with_items: with_items:
- "{{ filebeat_node_name }}.key" - "{{ filebeat_node_name }}.key"
- "{{ filebeat_node_name }}.pem" - "{{ filebeat_node_name }}.pem"
- "root-ca.pem" - "root-ca.pem"
- name: Ensuring folder & certs permissions
file:
path: "{{ filebeat_ssl_dir }}/"
mode: 0774
state: directory
recurse: yes
tags: tags:
- security - security
when: when: