[root@node1:/etc]# tree /etc/ansible/ /etc/ansible/ ├── ansible.cfg ├── hosts ├── python.yml └── roles └── python_install ├── files │ └── Python-3.6.6.tgz ├── tasks │ ├── copy.yml │ ├── install.yml │ └── main.yml └── templates └── python_install.sh 说明: files:存放需要同步到异地服务器的源码文件及配置文件; handlers:当资源发生变化时需要进行的操作,若没有此目录可以不建或为空; meta:角色定义可留空; tasks:python安装过程成需要进行的执行的任务; templates:用于执行python安装的模板文件,一般为脚本; vars:本次安装定义的变量,若无必要可以不建 python3.6
ansible配合shell脚本批量编译安装python3.6.6
最新推荐文章于 2023-06-15 10:53:31 发布