fix molecule playbook and add missing test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-10-18 15:04:04 +02:00
parent 915d27f8a2
commit aad6658d0c
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
---
- name: Converge
hosts: all
vars:
selinux_state: enforcing
roles:
- role: xoxys.selinux

View File

@ -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