ansible 配置文件
[defaults]
hostfile = ./inventory/hosts.ini
inventory = ./inventory/hosts.ini
remote_tmp = ~/.ansible/tmp
local_tmp = ~/.ansible/tmp
forks = 5
poll_interval = 15
sudo_user = root
transport = smart
remote_port = 22
roles_path = ./playbooks
host_key_checking = False
deprecation_warnings = False
log_path = ./logs/ansible.log
fact_caching =jsonfile
fact_caching_connection = /tmp/ansible_facts
filter_plugins=playbooks/filter_plugins
callback_whitelist = timer, profile_tasks
说明
配置文件可随意放置,调用ansible时,需与ansible.cfg在同一路径
hosts.ini与playbook路径需正确