diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2020-10-22 09:33:07 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2020-10-22 09:33:07 +0200 |
commit | 6649354e0cf92e2b009a7b33dda06a5165f6fdf2 (patch) | |
tree | f52a3edd2b986dd6c20f4136a43b6a274c82a936 /roles/torrelay/tasks | |
parent | e06c49c73eee035364e0627169e0ff077cd14439 (diff) | |
download | playbooks-ansible-6649354e0cf92e2b009a7b33dda06a5165f6fdf2.tar.gz playbooks-ansible-6649354e0cf92e2b009a7b33dda06a5165f6fdf2.tar.xz playbooks-ansible-6649354e0cf92e2b009a7b33dda06a5165f6fdf2.zip |
Add selinux modules for centos 8
Diffstat (limited to 'roles/torrelay/tasks')
-rw-r--r-- | roles/torrelay/tasks/selinux.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/torrelay/tasks/selinux.yml b/roles/torrelay/tasks/selinux.yml index 1b437e9..528edc7 100644 --- a/roles/torrelay/tasks/selinux.yml +++ b/roles/torrelay/tasks/selinux.yml @@ -1,12 +1,13 @@ - name: Déploiement des modules SELinux pour Centos copy: - src: "{{ item }}-centos-7.5.pp" + src: "{{ item }}-centos-8.2.pp" dest: "/root/{{ item }}.pp" mode: 0644 loop: - tor-bind-pop_port - tor-dac-capabilities - when: ansible_distribution == "CentOS" and ansible_distribution_major_version|int >= 7 + - tor-set-capabilities + when: ansible_distribution == "CentOS" and ansible_distribution_major_version|int >= 8 - name: Déploiement des modules SELinux pour Fedora copy: @@ -26,6 +27,7 @@ loop: - tor-bind-pop_port - tor-dac-capabilities + - tor-set-capabilities register: semodulelist1 ignore_errors: yes when: ansible_selinux.status != "disabled" and ansible_distribution == "CentOS" @@ -47,6 +49,7 @@ loop: - tor-bind-pop_port - tor-dac-capabilities + - tor-set-capabilities when: semodulelist1 is failed and ansible_selinux.status != "disabled" and ansible_distribution == "CentOS" - name: Installation des modules sur Fedora |