mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2024-10-08 16:00
This commit is contained in:
21
roles/nomad/tasks/selinux.yml
Normal file
21
roles/nomad/tasks/selinux.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
|
||||
- name: Set correct SELinux context
|
||||
sefcontext:
|
||||
target: "{{ nomad_root_dir }}/log(/.*)?"
|
||||
setype: httpd_log_t
|
||||
state: present
|
||||
register: nomad_fcontext
|
||||
when:
|
||||
- nomad_conf.tls.http
|
||||
- nomad_conf.server.enabled
|
||||
tags: nomad
|
||||
|
||||
- name: Fix context for log dir
|
||||
command: restorecon -R {{ nomad_root_dir }}/log
|
||||
changed_when: false
|
||||
tags: nomad
|
||||
|
||||
- name: Allow nginx to bind on other ports
|
||||
seboolean: name=nis_enabled state=true persistent=true
|
||||
tags: nomad
|
Reference in New Issue
Block a user