diff --git a/tasks/main.yml b/tasks/main.yml index a7e1fe7..cafe0e4 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 }}" diff --git a/tasks/setup-rocky-9.yml b/tasks/setup-rocky-9.yml index beeb708..533c90f 100644 --- a/tasks/setup-rocky-9.yml +++ b/tasks/setup-rocky-9.yml @@ -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: