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
|
||||||
- name: install mandatory selinux packages
|
ansible.builtin.package:
|
||||||
package:
|
|
||||||
name: policycoreutils-python
|
name: policycoreutils-python
|
||||||
state: installed
|
state: installed
|
||||||
when: ansible_distribution_major_version|int < 8
|
when: ansible_distribution_major_version|int <= 7
|
||||||
|
|
||||||
- block:
|
- name: Install mandatory SELinux packages
|
||||||
- name: install mandatory selinux packages
|
ansible.builtin.package:
|
||||||
package:
|
|
||||||
name: policycoreutils-python-utils
|
name: policycoreutils-python-utils
|
||||||
state: installed
|
state: installed
|
||||||
when: ansible_distribution_major_version|int >= 8
|
when: ansible_distribution_major_version|int >= 8
|
||||||
|
|
||||||
- name: create selinux module directory
|
- name: Create SELinux module directory
|
||||||
file:
|
ansible.builtin.file:
|
||||||
dest: /usr/local/share/selinux
|
dest: /usr/local/share/selinux
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue