diff --git a/tasks/main.yaml b/tasks/main.yaml index 17fb922..020e97f 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -2,14 +2,14 @@ - name: Install libselinux-python package: name=libselinux-python state=present when: - - ansible_os_family == 'RedHat' - - ansible_distribution_major_version <= '7' + - ansible_facts['os_family'] == 'RedHat' + - ansible_facts['distribution_major_version'] <= '7' - name: Install python3-libselinux package: name=python3-libselinux state=present when: - - ansible_os_family == 'RedHat' - - ansible_distribution_major_version == '8' + - ansible_facts['os_family'] == 'RedHat' + - ansible_facts['distribution_major_version'] == '8' - name: 'Set selinux state' selinux: