Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
499 B

---
- name: Set correct SELinux labels
sefcontext:
target: "{{ pki_root_dir }}/{{ item.path }}(/.*)?"
setype: "{{ item.type }}"
state: present
loop:
- path: run
type: httpd_var_run_t
- path: web/cgi-bin
type: httpd_sys_script_exec_t
- path: web/htdocs
type: httpd_sys_content_t
- path: data
type: httpd_sys_content_t
tags: pki
- name: Restore SElinux contexts
command: restorecon -R {{ pki_root_dir }}
changed_when: False
tags: pki