def ansible_inventory_temp_file(<EOL>self, keys=['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>):
lansible = LagoAnsible(self._prefix)<EOL>return lansible.get_inventory_temp_file(keys=keys)<EOL>
Context manager which returns Ansible inventory written on a tempfile.
This is the same as :func:`~ansible_inventory`, only the inventory file
is written to a tempfile.

Args:
    keys (list of str): Path to the keys that will be used to
        create groups.

Yields:
    tempfile.NamedTemporaryFile: Temp file containing the inventory