Repair logging in rabbitmq
We had set the wrong file context for log files. This changes is followed by these commands: - `ansible -m command rabbitmq\* -a 'semanage fcontext -d -t var_log_t "/var/log/rabbitmq(/.*)?"'` - `ansible -m command rabbitmq\* -a 'restorecon -v -R /var/log/rabbitmq'` Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
2a49ea6cea
commit
9c5d4f0768
1 changed files with 0 additions and 7 deletions
|
@ -477,13 +477,6 @@
|
|||
ansible.builtin.command: /etc/nagios/selinux-load.sh
|
||||
when: selinux_module is changed
|
||||
|
||||
- name: /var/log/rabbitmq selinux file context
|
||||
ansible.builtin.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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue