核心思想是使用Ansible提供的PythonAPI库,直接在Python代码中创建和执行Ansible的"Playbook"或"Ad-hocCommand",我们将主要介绍官方推荐的ansible-runner...