File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
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 }}"
Original file line number Diff line number Diff line change 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]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments