最后更新于4年前
配置ansible.cfg
可选值:
安装mitogen加速模块
Q: 如何获取ansible主控机器地址
Q: playbook运行卡在gather_facts
将gather_facts信息采集改为最少
[defaults] callback_whitelist = profile_tasks
[defaults] stdout_callback = yaml
pip install mitogen
[defaults] strategy = mitogen_linear strategy_plugins = /usr/lib/python2.7/site-packages/ansible_mitogen/plugins/strategy
- debug: var="{{ ansible_env['SSH_CLIENT'].split() | first }}"
[default] gather_subset = min