3-ansible debug模块

发布时间:2026/9/3 14:58:07
3-ansible debug模块 在ansible里debug模块主要用于打印变量、调试信息或执行结果相当于“输出日志/断点查看”。ansible debug语句[rootcent79-2 ~]# ansible all -m debug -a msghello world verbosity3 192.168.10.100 | SKIPPED [rootcent79-2 ~]# ansible all -m debug -a msghello world verbosity2 192.168.10.100 | SKIPPED [rootcent79-2 ~]# ansible all -m debug -a msghello world verbosity1 192.168.10.100 | SKIPPED [rootcent79-2 ~]# ansible all -m debug -a msghello world verbosity0 192.168.10.100 | SUCCESS { msg: hello world } [rootcent79-2 ~]#

相关新闻