From 1ad5bae35946c3aa2d7c99211a419c217c6db55f Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Tue, 20 Nov 2018 10:26:46 -0600 Subject: [PATCH] update sefcontext integration target and enable for rhel8 beta Signed-off-by: Adam Miller --- test/integration/targets/sefcontext/aliases | 1 - test/integration/targets/sefcontext/tasks/sefcontext.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/test/integration/targets/sefcontext/aliases b/test/integration/targets/sefcontext/aliases index 8e6e9cb4ccb..9af2d790425 100644 --- a/test/integration/targets/sefcontext/aliases +++ b/test/integration/targets/sefcontext/aliases @@ -1,3 +1,2 @@ needs/root shippable/posix/group2 -skip/rhel8.0 diff --git a/test/integration/targets/sefcontext/tasks/sefcontext.yml b/test/integration/targets/sefcontext/tasks/sefcontext.yml index d2fbc5886e6..b452ea28c2a 100644 --- a/test/integration/targets/sefcontext/tasks/sefcontext.yml +++ b/test/integration/targets/sefcontext/tasks/sefcontext.yml @@ -20,6 +20,14 @@ name: policycoreutils-python when: - ansible_distribution == 'RedHat' + - ansible_distribution_major_version|int < 8 + +- name: install requirements for rhel8 beta + package: + name: python3-policycoreutils + when: + - ansible_distribution == 'RedHat' + - ansible_distribution_major_version|int >= 8 - name: Ensure we start with a clean state sefcontext: