mirror of
https://gitea.0xace.cc/ansible-galaxy/selinux.git
synced 2025-01-18 12:02:18 +00:00
use ansible_facts
This commit is contained in:
parent
3b66729af0
commit
0e9b1d27d4
@ -2,14 +2,14 @@
|
|||||||
- name: Install libselinux-python
|
- name: Install libselinux-python
|
||||||
package: name=libselinux-python state=present
|
package: name=libselinux-python state=present
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_facts['os_family'] == 'RedHat'
|
||||||
- ansible_distribution_major_version <= '7'
|
- ansible_facts['distribution_major_version'] <= '7'
|
||||||
|
|
||||||
- name: Install python3-libselinux
|
- name: Install python3-libselinux
|
||||||
package: name=python3-libselinux state=present
|
package: name=python3-libselinux state=present
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_facts['os_family'] == 'RedHat'
|
||||||
- ansible_distribution_major_version == '8'
|
- ansible_facts['distribution_major_version'] == '8'
|
||||||
|
|
||||||
- name: 'Set selinux state'
|
- name: 'Set selinux state'
|
||||||
selinux:
|
selinux:
|
||||||
|
Loading…
Reference in New Issue
Block a user