This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_inventory(host_list, variable_manager, loader): | |
""" | |
Returns an inventory object for playbook execution. | |
Args: | |
host_list (list): list of IP addresses or hostnames | |
variable_manager (ansible.vars.manager.VariableManager): Ansible variable | |
manager for PlaybookExecutor | |
loader (ansible.parsing.dataloader.DataLoader): Ansible data loader for | |
PlaybookExecutor |