aboutsummaryrefslogtreecommitdiff
path: root/terraform/hash-prometheus/play-config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/hash-prometheus/play-config.yml')
-rw-r--r--terraform/hash-prometheus/play-config.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/terraform/hash-prometheus/play-config.yml b/terraform/hash-prometheus/play-config.yml
new file mode 100644
index 0000000..92ec3e6
--- /dev/null
+++ b/terraform/hash-prometheus/play-config.yml
@@ -0,0 +1,17 @@
+- hosts: hash
+ tasks:
+ - become: yes
+ name: mkdir /etc/docker-service/prometheus
+ file:
+ path: /etc/docker-service/prometheus
+ state: directory
+
+ - become: yes
+ name: cp /etc/docker-service/prometheus/prometheus.yml
+ register: config
+ copy:
+ src: prometheus.yml
+ dest: /etc/docker-service/prometheus/prometheus.yml
+
+ - shell: docker kill --signal HUP prometheus
+ when: config.changed