aboutsummaryrefslogtreecommitdiff
path: root/tasks/tls.yml
blob: 42bb0fec5246b3d1641502da9b827205e54c7b1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Copy CA certificate
  copy:
    content: '{{node_exporter_tls_ca}}'
    dest: '{{node_exporter_home_dir}}/conf/ca.crt'
  notify: Restart node_exporter
- name: Copy TLS Key
  copy:
    content: '{{node_exporter_tls_key}}'
    dest: '{{node_exporter_home_dir}}/conf/key'
    mode: '0600'
  notify: Restart node_exporter
- name: Copy TLS cert
  copy:
    content: '{{node_exporter_tls_crt}}'
    dest: '{{node_exporter_home_dir}}/conf/crt'
  notify: Restart node_exporter