copr: backend: fix selinux context for letsencrypt

This commit is contained in:
Pavel Raiskup 2019-05-15 12:03:24 +02:00
parent df159fcd0e
commit d6b0349846

View file

@ -15,6 +15,18 @@
group: lighttpd group: lighttpd
mode: g+s mode: g+s
- name: certbot, correct fcontext mapping the web root
sefcontext:
target: '/var/certbot/public_html/.well-known(/.*)'
setype: httpd_sys_content_t
state: present
- name: certbot, restorecon the web root
file:
path: /var/certbot/public_html/.well-know
state: directory
setype: httpd_sys_content_t
- name: Check that cert file exists - name: Check that cert file exists
stat: stat:
path: "/etc/letsencrypt/live/copr-be-dev.cloud.fedoraproject.org/cert.pem" path: "/etc/letsencrypt/live/copr-be-dev.cloud.fedoraproject.org/cert.pem"