Fix the permssions when installed as container
This commit is contained in:
parent
41a0442c21
commit
6c84c9e089
|
@ -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
|
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
|
- 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
|
- name: Run the letsencrypt hook once, to create the certificate chain that haproxy will use
|
||||||
shell: "{{ letsencrypt_acme_sh_services_scripts_dir }}/haproxy"
|
shell: "{{ letsencrypt_acme_sh_services_scripts_dir }}/haproxy"
|
||||||
|
|
Loading…
Reference in New Issue