Skip to content

Commit e709961

Browse files
authored
Remove obsolete certificate task and stop patching during a deploy (#660)
- Remove obsolete certificate task - Remove obsolete template - Stop Haproxy updates during deploys
1 parent 7cc0a50 commit e709961

3 files changed

Lines changed: 1 addition & 28 deletions

File tree

roles/haproxy/tasks/main.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- name: Install haproxy and socat
1717
ansible.builtin.apt:
1818
name:
19-
- "haproxy=3.0.*"
19+
- "haproxy"
2020
- "socat"
2121
- "git"
2222
state: "present"
@@ -88,17 +88,6 @@
8888
group: haproxy
8989
mode: "0770"
9090

91-
- name: Create combined key and certificate file for HAproxy
92-
ansible.builtin.copy:
93-
content: >
94-
{{ item.key_content }}{{ lookup('file', '{{ inventory_dir }}/files/certs/{{ item.crt_name }}') }}
95-
dest: "/etc/haproxy/certs/{{ item.name }}_haproxy.pem"
96-
mode: "0600"
97-
with_items: "{{ haproxy_sni_ip.certs }}"
98-
when: haproxy_sni_ip.certs is defined
99-
notify:
100-
- "reload haproxy"
101-
10291
- name: Create backend CA directory
10392
ansible.builtin.file:
10493
path: "{{ tls_backend_ca | dirname }}"

roles/haproxy/templates/certlist.lst.j2

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
/etc/haproxy/certs/{{ host }}.pem [ocsp-update on]
44
{% endfor %}
55
{% endif %}
6-
{% if haproxy_sni_ip.certs is defined %}
7-
{% for cert in haproxy_sni_ip.certs %}
8-
/etc/haproxy/certs/{{ cert.name }}_haproxy.pem [ocsp-update on]
9-
{% endfor %}
10-
{% endif %}
116
{% if haproxy_extra_certs is defined %}
127
{% for cert in haproxy_extra_certs %}
138
{{ cert }} [ocsp-update on]

roles/haproxy/templates/update_ocsp.j2

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)