Add import to

This commit is contained in:
Jose M 2019-08-08 17:44:08 +02:00
parent bb0c79c455
commit fb76622080

View File

@ -31,18 +31,32 @@
src: "{{item}}" src: "{{item}}"
dest: "{{node_certs_destination}}/" dest: "{{node_certs_destination}}/"
with_items: with_items:
- "{{master_certs_destination}}/{{filebeat_node_name}}/{{ filebeat_node_name }}.key" - "{{master_certs_path}}/{{filebeat_node_name}}/{{ filebeat_node_name }}.key"
- "{{master_certs_destination}}/{{filebeat_node_name}}/{{ filebeat_node_name }}.crt" - "{{master_certs_path}}/{{filebeat_node_name}}/{{ filebeat_node_name }}.crt"
- "{{master_certs_destination}}/ca/ca.crt" - "{{master_certs_path}}/ca/ca.crt"
tags: xpack-security
when: when:
- generate_CA
- filebeat_xpack_security - filebeat_xpack_security
tags: xpack-security
- name: Copying node's certificate from master (Custom CA)
copy:
src: "{{item}}"
dest: "{{node_certs_destination}}/"
with_items:
- "{{master_certs_path}}/{{filebeat_node_name}}/{{ filebeat_node_name }}.key"
- "{{master_certs_path}}/{{filebeat_node_name}}/{{ filebeat_node_name }}.crt"
- "{{master_certs_path}}/ca/{{ca_cert_name}}"
when:
- not generate_CA
- filebeat_xpack_security
tags: xpack-security
- name: Ensuring certificates folder owner - name: Ensuring folder & certs permissions
file: file:
path: "{{ node_certs_destination }}/" path: "{{ node_certs_destination }}/"
mode: '0770' mode: '0774'
state: directory
recurse: yes recurse: yes
when: when:
- filebeat_xpack_security - filebeat_xpack_security