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
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
---
|
||||
- name: haproxy | install requirements
|
||||
include_tasks: requirements.yml
|
||||
|
||||
- name: haproxy | install from backports
|
||||
include_tasks: install_from_backports.yml
|
||||
when: not haproxy_use_debian_repo | bool
|
||||
|
||||
9
tasks/requirements.yml
Normal file
9
tasks/requirements.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: haproxy | install requirements
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- gpg
|
||||
Reference in New Issue
Block a user