summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-04-06 19:01:26 +0300
committerLars Wirzenius <liw@liw.fi>2018-04-06 19:01:26 +0300
commit14817b4b834c5b1390e01cb619d2819d843ec142 (patch)
tree9c639ead4d45834bdfb710ed8dcee96682a99103 /roles
parentb0946a381965c85026a0d8017d86948d771ef4d7 (diff)
downloadick2-ansible-14817b4b834c5b1390e01cb619d2819d843ec142.tar.gz
Add: install (but don't configure) haproxy on letsencrypt client
Diffstat (limited to 'roles')
-rw-r--r--roles/letsencrypt/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/letsencrypt/tasks/main.yml b/roles/letsencrypt/tasks/main.yml
index 9483ac0..5606b60 100644
--- a/roles/letsencrypt/tasks/main.yml
+++ b/roles/letsencrypt/tasks/main.yml
@@ -20,7 +20,12 @@
name: certbot
default_release: stretch-backports
+- name: install haproxy
+ apt:
+ name: haproxy
+
- name: stop haproxy
+ ignore_errors: true
systemd:
name: haproxy
state: stopped
@@ -38,6 +43,7 @@
command: /usr/local/sbin/deploy_certs_haproxy
- name: start haproxy
+ ignore_errors: true
systemd:
name: haproxy
state: started