add requirements && create config file

This commit is contained in:
Ludovic Cartier
2025-10-22 15:34:42 +02:00
parent d6df0110a4
commit 156c60c8fa
3 changed files with 20 additions and 0 deletions

View File

@@ -10,6 +10,14 @@
- '/etc/haproxy/ssl/certs'
- '/etc/haproxy/ssl/self'
- name: haproxy | create ACL file
file:
path: /etc/haproxy/without_ssl.txt
state: touch
owner: root
group: root
mode: '0644'
- name: haproxy | create default self-signed certificate
shell: |
openssl req -newkey rsa:2048 -nodes -sha256 -x509 -subj "{{ haproxy_ssl_self_signed_subj }}/CN={{ item }}" -days {{ haproxy_ssl_self_signed_days }} -keyout "{{ item }}.key" -out "{{ item }}.crt" -extensions v3_ca