mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
copr: backend: fix selinux context for letsencrypt
This commit is contained in:
@@ -15,6 +15,18 @@
|
||||
group: lighttpd
|
||||
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
|
||||
stat:
|
||||
path: "/etc/letsencrypt/live/copr-be-dev.cloud.fedoraproject.org/cert.pem"
|
||||
|
||||
Reference in New Issue
Block a user