summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorLars Wirzenius <lwirzenius@wikimedia.org>2019-07-04 21:08:54 +0300
committerLars Wirzenius <lwirzenius@wikimedia.org>2019-07-04 21:08:54 +0300
commit61704f08113e50e4614c269b1bc1e940880a447c (patch)
treed46bdc707f61bc269bdc9dcfe2a964f4d76206d0 /roles
parenta0abd4a7aa5e7b3bee5196c5f1085037b9a7aab5 (diff)
downloadwmf-gitlab-61704f08113e50e4614c269b1bc1e940880a447c.tar.gz
Fix: haproxy so it can be installed onto a fresh machine
Diffstat (limited to 'roles')
-rw-r--r--roles/haproxy/tasks/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml
index f7464c8..8bb1ceb 100644
--- a/roles/haproxy/tasks/main.yml
+++ b/roles/haproxy/tasks/main.yml
@@ -7,6 +7,10 @@
name: certbot
default_release: stretch-backports
+- name: install haproxy
+ apt:
+ name: haproxy
+
- name: "install daily cron job to create haproxy.pem"
copy:
content: |
@@ -31,15 +35,11 @@
--expand \
--cert-name haproxy \
--keep \
- --pre-hook "systemctl stop apache2 haproxy" \
- --post-hook "systemctl start apache2 haproxy" \
+ --pre-hook "systemctl stop haproxy" \
+ --post-hook "systemctl start haproxy" \
-d "{{ haproxy_domain }}"
/etc/cron.daily/haproxy.pem
-- name: install haproxy
- apt:
- name: haproxy
-
- name: "install haproxy config"
copy:
src: haproxy.cfg