http://docs.jinkan.org/docs/jinja2/templates.html#variables 无需重启:ansible /etc/ansible/ansible.cfg 执行结果: