diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-17 20:41:13 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-17 20:41:13 -0400 |
| commit | 4db1380d6e401fdcafdea847d5a74a86be51f8c4 (patch) | |
| tree | cea2b2b60ecb2adbb4ace7be24ac7d52660707b5 /tasks/tls.yml | |
| download | node_exporter-master.tar.gz node_exporter-master.tar.xz | |
Diffstat (limited to 'tasks/tls.yml')
| -rw-r--r-- | tasks/tls.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tasks/tls.yml b/tasks/tls.yml new file mode 100644 index 0000000..42bb0fe --- /dev/null +++ b/tasks/tls.yml @@ -0,0 +1,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 |
