add requirements && create config file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user