fix molecule playbook and add missing test
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
915d27f8a2
commit
aad6658d0c
@ -1,5 +1,8 @@
|
||||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
vars:
|
||||
selinux_state: enforcing
|
||||
|
||||
roles:
|
||||
- role: xoxys.selinux
|
||||
|
@ -10,5 +10,6 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
|
||||
|
||||
def test_selinux_setup(host):
|
||||
assert host.command.check_output('/usr/sbin/getenforce') == 'Enforcing'
|
||||
assert host.package('policycoreutils-python').is_installed
|
||||
assert host.command.check_output("/usr/sbin/getenforce") == "Enforcing"
|
||||
assert host.package("policycoreutils-python").is_installed
|
||||
assert host.file("/.autorelabel").exists
|
||||
|
Loading…
Reference in New Issue
Block a user