- name: blahblah hosts: hostname vars: var1: value1 var2: value2 vars_files: - /path/to/var1.yaml - /path/to/var2.yaml vars_prompt: this key's value is a 2 item array, each item is a single item hash - name: var_name - prompt: the prompt message itself # this will do a prompt for more info during runtime sudo: user: connection: gather_facts:
注意:默认情况下,设置模块总是在后台运行以收集事实。如果您的剧本没有引用任何事实,您可以禁用此行为。要禁用此设置,请将收集的事实设置为“false”或者“no”。
日期:2020-07-07 20:57:25 来源:oir作者:oir