def METHOD_NAME(self, timeout, step_time=10):
    """
    Waiting for ansible-playbook process to complete execution and exit
    :param timeout: Timeout in seconds.
    :param step_time: Time to sleep between attempts in seconds.
    """
    if not wait_for(lambda: not self.is_alive(), timeout, step=step_time,
                    text='Waiting for the ansible-playbook process to '
                         'complete...'):
        self.kill()
        raise ExecutorTimeoutError('ansible-playbook cannot complete all '
                                   'tasks within the expected time.')
    LOG_JOB.info('ansible-playbook execution is completed.')