selinux: ansible-lint fixes
This commit is contained in:
parent
3e58a1b336
commit
c39c39c0f4
1 changed files with 11 additions and 13 deletions
|
@ -1,20 +1,18 @@
|
|||
---
|
||||
- block:
|
||||
- name: install mandatory selinux packages
|
||||
package:
|
||||
name: policycoreutils-python
|
||||
state: installed
|
||||
when: ansible_distribution_major_version|int < 8
|
||||
- name: Install mandatory SELinux packages
|
||||
ansible.builtin.package:
|
||||
name: policycoreutils-python
|
||||
state: installed
|
||||
when: ansible_distribution_major_version|int <= 7
|
||||
|
||||
- block:
|
||||
- name: install mandatory selinux packages
|
||||
package:
|
||||
name: policycoreutils-python-utils
|
||||
state: installed
|
||||
- name: Install mandatory SELinux packages
|
||||
ansible.builtin.package:
|
||||
name: policycoreutils-python-utils
|
||||
state: installed
|
||||
when: ansible_distribution_major_version|int >= 8
|
||||
|
||||
- name: create selinux module directory
|
||||
file:
|
||||
- name: Create SELinux module directory
|
||||
ansible.builtin.file:
|
||||
dest: /usr/local/share/selinux
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
|
Loading…
Add table
Reference in a new issue