mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-11-10 21:54:15 +00:00
5a777cd2d1
Riot is now Element, and therefore this role has to do a lot of `s/riot/element/g`. There's still a few references to riot here and there, but fixing those depends on external changes. This does not attempt any automatic migration, you will need to clean up the old webroot or container yourself. BREAKING CHANGE: role name and variable names have changed
14 lines
313 B
Python
14 lines
313 B
Python
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'
|