base: Tweak conditionals to be much simpiler.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
c80a06773a
commit
53c3309269
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
# Things in here are things we want to do to every machine no matter what.
|
# Things in here are things we want to do to every machine no matter what.
|
||||||
#
|
#
|
||||||
|
|
||||||
- name: ensure packages required for semanage are installed (yum)
|
- name: ensure packages required for semanage are installed (rhel 6 and 7)
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- policycoreutils-python
|
- policycoreutils-python
|
||||||
|
@ -13,9 +13,9 @@
|
||||||
- selinux
|
- selinux
|
||||||
when: ansible_distribution_major_version|int < 8 and ansible_distribution == 'RedHat'
|
when: ansible_distribution_major_version|int < 8 and ansible_distribution == 'RedHat'
|
||||||
|
|
||||||
- name: ensure packages required for semanage are installed (dnf)
|
- name: ensure packages required for semanage are installed (fedora/rhel8)
|
||||||
package: name=policycoreutils-python-utils state=present
|
package: name=policycoreutils-python-utils state=present
|
||||||
when: (ansible_distribution_major_version|int > 27 and ansible_distribution == 'Fedora') or (ansible_distribution_major_version|int > 7 and ansible_distribution == 'RedHat') and ansible_cmdline.ostree is not defined
|
when: ansible_distribution_major_version|int => 8
|
||||||
tags:
|
tags:
|
||||||
- selinux
|
- selinux
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue