fix SELinux facts tests

* make the pre-flight sniffing more robust to different failure conditions (was failing on Ubuntu 22.04 VMs)
* remove skip aliases (the test needs to function everywhere to assert that the selinux facts bits behave properly when it's N/A)
pull/77720/head
Matt Davis 2 years ago committed by Matt Clay
parent 6513453310
commit 4ff10fcd31

@ -1,5 +1 @@
shippable/posix/group1
skip/osx
skip/macos
skip/freebsd
skip/docker

@ -18,11 +18,12 @@
- name: check selinux policy type
shell: grep '^SELINUXTYPE=' /etc/selinux/config | cut -d'=' -f2
ignore_errors: yes
register: r
- set_fact:
selinux_policytype: "{{ r.stdout_lines[0] }}"
when: r.changed
when: r is success and r.stdout_lines
- assert:
that:

Loading…
Cancel
Save