fix selinux is only for RHEL 9.3

This commit is contained in:
CASSONNET Guillaume 2023-11-24 18:48:57 +01:00
parent d669ce9dfe
commit 6a87854b47
2 changed files with 6 additions and 6 deletions

View File

@ -1,10 +1,4 @@
---
- name: Fix msmtpd SELinux type context
community.general.sefcontext:
target: '/usr/bin/msmtpd'
setype: bin_t
state: present
- name: Include tasks depending on OS
ansible.builtin.include_tasks:
file: "{{ item }}"

View File

@ -1,4 +1,10 @@
---
- name: Fix msmtpd SELinux type context for msmtpd as a service
community.general.sefcontext:
target: '/usr/bin/msmtpd'
setype: bin_t
state: present
- name: Install msmtp
yum:
name: