aboutsummaryrefslogtreecommitdiff
path: root/tasks/tls.yml
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-10-17 20:41:13 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-10-17 20:41:13 -0400
commit4db1380d6e401fdcafdea847d5a74a86be51f8c4 (patch)
treecea2b2b60ecb2adbb4ace7be24ac7d52660707b5 /tasks/tls.yml
downloadnode_exporter-4db1380d6e401fdcafdea847d5a74a86be51f8c4.tar.gz
node_exporter-4db1380d6e401fdcafdea847d5a74a86be51f8c4.tar.xz
InitialHEADmaster
Diffstat (limited to 'tasks/tls.yml')
-rw-r--r--tasks/tls.yml17
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