[defaults] inventory = /path/to/inventory remote_user = username become = yes become_method = sudo gather_facts = yes fact_caching = jsonfile fact_caching_timeout = 86400 log_path = /var/log/ansible.log retry_files_enabled = False interpreter_python = auto_silent host_key_checking = False timeout = 30 forks = 5 roles_path = /path/to/roles callback_whitelist = profile_tasks, timer transport = ssh ansible_python_interpreter = /usr/bin/python3

[ssh_connection] ssh_args = -o ControlMaster=no -o ControlPersist=60s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -o Compression=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=120

帮我写一个简单的ansiblecfg

原文地址: https://www.cveoy.top/t/topic/byj7 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录