Debian Codegraph @

lib/ansible/plugins/strategy/debug.py

raw
1 # This file is part of Ansible
2 #
3 # Ansible is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # Ansible is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
15 from __future__ import annotations
16
17 DOCUMENTATION = """
18 name: debug
19 short_description: Executes tasks in interactive debug session.
20 description:
21 - Task execution is 'linear' but controlled by an interactive debug session.
22 version_added: "2.1"
23 author: Kishin Yagami (!UNKNOWN)
24 """
25
26 from ansible.plugins.strategy.linear import StrategyModule as LinearStrategyModule
27
28
29 class StrategyModule(LinearStrategyModule):
30 def __init__(self, tqm):
31 super(StrategyModule, self).__init__(tqm)
32 self.debugger_active = True