From 4db1380d6e401fdcafdea847d5a74a86be51f8c4 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 17 Oct 2021 20:41:13 -0400 Subject: Initial --- tasks/tls.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tasks/tls.yml (limited to 'tasks/tls.yml') 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 -- cgit v1.2.3