selinux allow rabbitmq logs in logrotate

This commit is contained in:
Seddik Alaoui Ismaili 2024-09-21 16:37:42 +02:00 committed by kevin
parent 637e92fe11
commit b29b23f3e9

View file

@ -476,6 +476,13 @@
command: /etc/nagios/selinux-load.sh
when: selinux_module is changed
- name: /var/log/rabbitmq selinux file context
command: semanage fcontext -a -t var_log_t "/var/log/rabbitmq(/.*)?"
register: semanage_rabbit
changed_when: "'already defined' not in semanage_rabbit.stdout"
tags:
- selinux_module
# Individual applications accounts & queues
- import_tasks: apps.yml
tags: