去掉ansible的相关警告信息
去掉ansible的相关警告信息,只保留输出结果。
使用 ansible.cfg
配置禁用警告
action_warnings = False
deprecation_warnings = False
inventory = /home/inventory/hosts
[root@ansible-master home]# export PYTHONWARNINGS="ignore"
去掉ansible的相关警告信息,只保留输出结果。
ansible.cfg
配置禁用警告action_warnings = False
deprecation_warnings = False
inventory = /home/inventory/hosts
[root@ansible-master home]# export PYTHONWARNINGS="ignore"