initial commit of stackdriver logging role for GCP

This commit is contained in:
Eric Anderson 2020-04-24 15:54:06 -07:00
commit 42a304bdda
16 changed files with 282 additions and 0 deletions

View file

@ -0,0 +1,15 @@
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'