[defaults]
# 主机清单文件路径
inventory = ./inventory/hosts

# 并发连接数
forks = 5

# 远程连接超时时间（秒）
timeout = 30

# 禁用 SSH key 检查
host_key_checking = False

# 指定远程用户
remote_user = root

# 日志路径
log_path = ./ansible.log

# 显示任务执行时间
callback_whitelist = profile_tasks

# 显示任务执行差异
diff = True

# roles 路径
roles_path = ./roles

[privilege_escalation]
# 是否需要切换成其他用户
become = True
become_method = sudo
become_user = root
become_ask_pass = False

[ssh_connection]
# SSH 参数配置
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
pipelining = True
