mac_maker.ansible_controller.process

Process management for Ansible commands.

class mac_maker.ansible_controller.process.AnsibleProcess(ansible_module, ansible_class, state)[source]

Process management for Ansible commands.

Parameters
  • ansible_module (str) – Dot path of the ansible module to load.

  • ansible_class (str) – The Ansible class to import from this module.

  • state (TypeState) – The loaded runtime state object.

spawn(command)[source]

Spawns an Ansible CLI Command in it’s own process.

Parameters

command (str) – The Ansible CLI Command to spawn.

Return type

None