mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-08 15:03:30 +01:00
Fix broken behavior under Ansible 2.7 due to yum module change.
This commit is contained in:
parent
c01aecaa78
commit
2d8e23af5a
2 changed files with 1 additions and 15 deletions
|
@ -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'
|
|
@ -3,4 +3,4 @@
|
|||
yum:
|
||||
name: "{{ apache_packages }}"
|
||||
state: "{{ apache_packages_state }}"
|
||||
enablerepo: "{{ apache_enablerepo | default(omit) }}"
|
||||
enablerepo: "{{ apache_enablerepo | default(omit, true) }}"
|
||||
|
|
Loading…
Reference in a new issue