Fix broken behavior under Ansible 2.7 due to yum module change.

This commit is contained in:
Jeff Geerling 2018-10-08 11:56:04 -05:00
parent c01aecaa78
commit 2d8e23af5a
2 changed files with 1 additions and 15 deletions

View file

@ -1,14 +0,0 @@
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_hosts_file(host):
f = host.file('/etc/hosts')
assert f.exists
assert f.user == 'root'
assert f.group == 'root'

View file

@ -3,4 +3,4 @@
yum:
name: "{{ apache_packages }}"
state: "{{ apache_packages_state }}"
enablerepo: "{{ apache_enablerepo | default(omit) }}"
enablerepo: "{{ apache_enablerepo | default(omit, true) }}"