aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mosquitto-server/handlers
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-06-17 13:11:47 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-06-17 13:11:47 +0200
commite2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2 (patch)
tree09f527771ffb9af015d05f494ec7ccbccbe62793 /ansible/roles/mosquitto-server/handlers
parent0f9a79c433f26ef12c8e22a97c41d755ce3b8590 (diff)
downloadinfra-e2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2.tar.gz
infra-e2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2.tar.bz2
infra-e2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2.tar.xz
infra-e2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2.zip
o Adding mosquitto-server.
Diffstat (limited to 'ansible/roles/mosquitto-server/handlers')
-rw-r--r--ansible/roles/mosquitto-server/handlers/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/roles/mosquitto-server/handlers/main.yml b/ansible/roles/mosquitto-server/handlers/main.yml
new file mode 100644
index 0000000..c7e142b
--- /dev/null
+++ b/ansible/roles/mosquitto-server/handlers/main.yml
@@ -0,0 +1,11 @@
+---
+- name: reload mosquitto
+ service:
+ name: mosquitto
+ state: reloaded
+- name: run mosquitto deploy handler
+ shell: /etc/letsencrypt/renewal-hooks/deploy/mosquitto-server
+ become: true
+ environment:
+ RENEWED_DOMAINS: 'trygvis.io'
+ RENEWED_LINEAGE: '/etc/letsencrypt/live/trygvis.io'