从“ansible.cfg”或清单文件中关闭“gather_facts”

ImA*_*rot 2 rhel ansible

gather_facts除了在游戏级别之外还有其他方法可以关闭吗?如果我想永久禁用它,有没有办法在或清单文件中做到这一点ansible.cfg

tin*_*ink 5

ansible.cfg

# plays will gather facts by default, which contain information about
# the remote system.
#
# smart - gather by default, but don't regather if already gathered
# implicit - gather by default, turn off with gather_facts: False
# explicit - do not gather by default, must say gather_facts: True
gathering = explicit
Run Code Online (Sandbox Code Playgroud)