INNER CODE UNIT · Python

v2_playbook_on_play_start

wise2c-devops/breeze · callback_plugins/log_back.py:170

    def v2_playbook_on_play_start(self, play):
        self.playbook_on_play_start(play.name)

    def v2_playbook_on_stats(self, stats):
        state = ""
        if len(stats.failures) > 0 or len(stats.dark) > 0:
            state = "failed"
        else:
            state = "ok"
        self.task['name'] = "ending"
        self.log("all", state, dict(state=state))

    def v2_on_file_diff(self, result):
        if 'diff' in result._result:
            host = result._host.get_name()
            self.on_file_diff(host, result._result['diff'])

    def v2_playbook_on_include(self, included_file):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…