mac_maker.ansible_controller.spec

Ansible provisioning job spec data.

class mac_maker.ansible_controller.spec.Spec(workspace_root_path, profile_data_path, galaxy_requirements_file, playbook, roles_path, collections_path, inventory)[source]

Ansible provisioning job spec.

Parameters:
  • workspace_root_path (str) –

  • profile_data_path (str) –

  • galaxy_requirements_file (str) –

  • playbook (str) –

  • roles_path (List[str]) –

  • collections_path (List[str]) –

  • inventory (str) –

classmethod from_profile(profile)[source]

Generate a provisioning spec from a profile instance.

Parameters:

profile (Profile) – The profile being used.

Return type:

Spec

Returns:

The created spec instance.