diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-09-29 09:40:29 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-09-29 09:40:29 +0300 |
commit | 06fa219a4adb3e6818063621d5b6a466501c3760 (patch) | |
tree | 1561d00c4f3b60bf147d99c6eb47db97fca90c5f /roles | |
parent | 26240e96ee8aca4781cc739d9c9ec7e4e4512a50 (diff) | |
download | debian-ansible-06fa219a4adb3e6818063621d5b6a466501c3760.tar.gz |
Change: order of installing haproxy, running certbot
For freshly installed systems so the first run doesn't fail.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/haproxy/tasks/main.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml index 2fc6d5e..319b440 100644 --- a/roles/haproxy/tasks/main.yml +++ b/roles/haproxy/tasks/main.yml @@ -14,6 +14,10 @@ exit 1 fi +- name: install haproxy + apt: + name: haproxy + - name: "install certbot" apt: name: certbot @@ -43,15 +47,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: "create config dirs" file: state: directory |