diff options
author | Matt Clay <matt@mystile.com> | 2019-01-18 13:54:03 -0800 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2019-01-18 14:07:36 -0800 |
commit | c7b9ef740cead28d9282e8418f22b8700c032437 (patch) | |
tree | ab5f4060ab578ef1e25a3d15900f6a8c05d00cda /test/integration/targets/seboolean | |
parent | bea698fbc3f71348be54e238476e8687d909a964 (diff) | |
download | ansible-c7b9ef740cead28d9282e8418f22b8700c032437.tar.gz |
Enable seboolean integration test on RHEL 8.0.
Diffstat (limited to 'test/integration/targets/seboolean')
-rw-r--r-- | test/integration/targets/seboolean/aliases | 1 | ||||
-rw-r--r-- | test/integration/targets/seboolean/tasks/seboolean.yml | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/test/integration/targets/seboolean/aliases b/test/integration/targets/seboolean/aliases index 8e6e9cb4cc..9af2d79042 100644 --- a/test/integration/targets/seboolean/aliases +++ b/test/integration/targets/seboolean/aliases @@ -1,3 +1,2 @@ needs/root shippable/posix/group2 -skip/rhel8.0 diff --git a/test/integration/targets/seboolean/tasks/seboolean.yml b/test/integration/targets/seboolean/tasks/seboolean.yml index 5c9b7674f6..252ee3d0ff 100644 --- a/test/integration/targets/seboolean/tasks/seboolean.yml +++ b/test/integration/targets/seboolean/tasks/seboolean.yml @@ -15,11 +15,17 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. -- name: install requirements for RHEL +- name: install requirements for RHEL 7 and earlier package: name: policycoreutils-python when: - - ansible_distribution == 'RedHat' + - ansible_distribution == 'RedHat' and ansible_distribution_major_version is version('7', '<=') + +- name: install requirements for RHEL 8 and later + package: + name: policycoreutils-python-utils + when: + - ansible_distribution == 'RedHat' and ansible_distribution_major_version is version('8', '>=') - name: Cleanup shell: setsebool -P httpd_can_network_connect 0 |