(self)
Performs the provisioning operations using ansible-playbook.
Performs the provisioning operations using ansible-playbook.
Performs the provisioning operations using ansible - playbook .
def provision(self):
        """ Performs the provisioning operations using ansible-playbook. """
        self.setup()
        with tempfile.NamedTemporaryFile() as tmpinv:
            tmpinv.write(self.get_inventory().encode('ascii'))
            tmpinv.flush()
            self.host.run(self._build_ansible_playbook_command_args(tmpinv.name))
def provision ( self ) : self . setup ( ) with tempfile . NamedTemporaryFile ( ) as tmpinv : tmpinv . write ( self . get_inventory ( ) . encode ( 'ascii' ) ) tmpinv . flush ( ) self . host . run ( self . _build_ansible_playbook_command_args ( tmpinv . name ) )