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)
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user