def inventory(testdir):
    """
    Create minimal ansible inventory file (such file contains just
    single line ``localhost``).
    """
    inventory = testdir.makefile(".ini", "localhost")
    return inventory