Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
titleApply Ansible Playbook Utility
from snaps.provisioning import ansible_utils
 

# Please see above for other variable references 
ansible_utils.apply_playbook(playbook_path='/tmp/playbook.yml',
                             hosts_inv=[instance_creator.get_port_ip(instance_settings.port_settings[0].name)],
                             host_user=instance_creator.get_image_user(),
                             ssh_priv_key_file_path=instance_creator.keypair_settings.private_filepath)

...