Fix the permssions when installed as container

This commit is contained in:
Andrea Dell'Amico 2023-10-07 23:22:17 +02:00
parent 41a0442c21
commit 6c84c9e089
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,12 @@
template: src=haproxy-letsencrypt-acme.sh.j2 dest={{ letsencrypt_acme_sh_services_scripts_dir }}/haproxy owner=root group=root mode=4555
- name: Create the haproxy PKI directory
file: dest=/etc/pki/haproxy state=directory owner=root group=haproxy mode=0750
file:
dest: /etc/pki/haproxy
state: directory
owner: root
group: "{%if not haproxy_docker_container %}haproxy{% else %}root{% endif %}"
mode: "0750"
- name: Run the letsencrypt hook once, to create the certificate chain that haproxy will use
shell: "{{ letsencrypt_acme_sh_services_scripts_dir }}/haproxy"