File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
17
17
ENV = {}
18
+ STATE = {"verbose" : False }
18
19
for k , v in os .environ .items ():
19
20
ENV [k ] = v
20
21
Original file line number Diff line number Diff line change 6
6
from typer import Typer
7
7
from typing_extensions import Annotated
8
8
9
- from ctf import ENV , LOG
9
+ from ctf import ENV , LOG , STATE
10
10
from ctf .check import app as check_app
11
11
from ctf .deploy import app as deploy_app
12
12
from ctf .destroy import app as destroy_app
@@ -52,6 +52,7 @@ def global_options(
52
52
if verbose :
53
53
LOG .setLevel (logging .DEBUG )
54
54
LOG .handlers [0 ].setLevel (logging .DEBUG )
55
+ STATE ["verbose" ] = True
55
56
56
57
if location :
57
58
ENV ["CTF_ROOT_DIR" ] = location
Original file line number Diff line number Diff line change 7
7
import typer
8
8
from typing_extensions import Annotated
9
9
10
- from ctf import ENV
10
+ from ctf import ENV , STATE
11
11
from ctf .destroy import destroy
12
12
from ctf .generate import generate
13
13
from ctf .logger import LOG
@@ -279,6 +279,8 @@ def run_ansible_playbook(
279
279
execute_common : bool = True ,
280
280
) -> None :
281
281
extra_args = []
282
+ if STATE ["verbose" ]:
283
+ extra_args .append ("-vvv" )
282
284
if remote :
283
285
extra_args += ["-e" , f"ansible_incus_remote={ remote } " ]
284
286
You can’t perform that action at this time.
0 commit comments