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
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
vars:
|
||||||
|
selinux_state: enforcing
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: xoxys.selinux
|
- role: xoxys.selinux
|
||||||
|
@ -10,5 +10,6 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||||||
|
|
||||||
|
|
||||||
def test_selinux_setup(host):
|
def test_selinux_setup(host):
|
||||||
assert host.command.check_output('/usr/sbin/getenforce') == 'Enforcing'
|
assert host.command.check_output("/usr/sbin/getenforce") == "Enforcing"
|
||||||
assert host.package('policycoreutils-python').is_installed
|
assert host.package("policycoreutils-python").is_installed
|
||||||
|
assert host.file("/.autorelabel").exists
|
||||||
|
Loading…
Reference in New Issue
Block a user